[R-SIG-Finance] An Issue with quantmod

Robert Sherry rsherry8 at comcast.net
Sun Nov 26 00:59:32 CET 2017


Josh,

Based on your last email, I tired what was suggested and it worked. 
Thank you very much.

Bob Sherry

On 11/25/2017 5:27 PM, Joshua Ulrich wrote:
> On Sat, Nov 25, 2017 at 3:35 PM, Robert Sherry <rsherry8 at comcast.net> wrote:
>> Josh or anybody else,
>>
>> First I want to thank Josh for his attention to this bug. I looked at the
>> following URL:
>>      https://github.com/joshuaulrich/quantmod/issues/197
>> and I see the following:
>>
>> I just pushed an update to the 197_getQuote branch. Please test and provide
>> feedback!
>>
>> There is one minor issue regarding the "Last Time" field. It's currently in
>> your local timezone, not the exchange timezone. The fix needs to account for
>> the possibility that users may request multiple symbols, and those symbols
>> may be from exchanges in different timezones. You cannot mix timezones in a
>> POSIXctvector, so we need to check whether all the timezones are the same,
>> and convert them to a common timezone if they are not.
>>
>>
>> What I do not know is how to get this update? I have run the following
>> command:  update.packages()
>> However, this command updates all packages and I do not believe I can
>> specify the particular branch 197_getQuote. What should I do?
>>
> Have you tried what's suggested in the README.md?  I've quoted the
> relevant portion below:
>
> Installation
>
> The current release is available on CRAN, which you can install via:
> install.packages("quantmod")
>
> To install the development version, you need to clone the repository
> and build from source, or run one of:
>
> # lightweight
> remotes::install_github("joshuaulrich/quantmod")
> # or
> devtools::install_github("joshuaulrich/quantmod")
>
>> Bob Sherry
>>
>>
>>
>> On 11/14/2017 9:11 AM, Joshua Ulrich wrote:
>>
>> On Tue, Nov 14, 2017 at 8:09 AM, Robert Sherry <rsherry8 at comcast.net> wrote:
>>
>> I am using version 3.4.2 of R and I run the following two commands:
>>       library(quantmod)
>>       x=getQuote( "XOM" )
>> and get the following error messages:
>>
>> Error in download.file(paste("https://finance.yahoo.com/d/quotes.csv?s=",  :
>>    cannot open URL
>> 'https://finance.yahoo.com/d/quotes.csv?s=XOM&f=d1t1l1c1p2ohgv'
>> In addition: Warning message:
>> In download.file(paste("https://finance.yahoo.com/d/quotes.csv?s=", :
>>    cannot open URL
>> 'https://finance.yahoo.com/d/quotes.csv?s=XOM&f=d1t1l1c1p2ohgv': HTTP status
>> was '403 Forbidden'
>>
>> What should I do?
>>
>> Search open issues (the function name and portion(s) of the error are
>> usually good search terms):
>> https://github.com/joshuaulrich/quantmod/issues/
>>
>> And report a new issue if someone else already hasn't.  In this case,
>> it's already been reported and I'm working on a fix:
>> https://github.com/joshuaulrich/quantmod/issues/197
>>
>> Bob
>>
>> _______________________________________________
>> R-SIG-Finance at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
>> -- Subscriber-posting only. If you want to post, subscribe first.
>> -- Also note that this is not the r-help list where general R questions
>> should go.
>>
>>
>>
>
>



More information about the R-SIG-Finance mailing list