[R-SIG-Finance] Quantmod's getFin() functionality broken?

Jeffrey Ryan jeffrey.ryan at lemnica.com
Thu Feb 23 19:52:16 CET 2012


Warning != Error

This is a result of google not using the correct end of line in the
page, and/or R stripping/missing it.

Either way, it doesn't matter - as it is a harmless warning.

HTH
Jeff

On Thu, Feb 23, 2012 at 12:49 PM, Devin Newman <devinlnewman at gmail.com> wrote:
> Hello r-sig-finance!
>
> This is my first post to the list, so I hope you can bear what might be a
> silly question. Previously, I've had no trouble using quantmod's getFin()
> function to pull data. However, lately it hasn't been working. I think one
> of the functions called within getFin to clean up the data isn't working as
> intended.
>
>> AAPL <- getFin('AAPL', src="google")
> Warning message:
> In readLines(tmp) :
>  incomplete final line found on
> '/var/folders/rf/pz5jmyzd1q9833s7h6r5lpzr0000gn/T//RtmpwUJi6G/file2e051531243'
>
>> AAPL <- getFin('AAPL', src="yahoo")
> Warning message:
> In readLines(tmp) :
>  incomplete final line found on
> '/var/folders/rf/pz5jmyzd1q9833s7h6r5lpzr0000gn/T//RtmpwUJi6G/file2e024d4166b'
>
> Regardless of 'src' I get equivalent errors, "incomplete final line".
> Rather than immediately dive in and troubleshoot the code (although
> perusing through it was a great lesson in how to write R), I was hoping to
> share my issue here to see if others had similar problems, as I don't think
> this is merely the result of a formatting change on google/yahoo finance.
>
> Any help would be appreciated.
>
> Kind regards,
> Devin Newman
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> 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.



-- 
Jeffrey Ryan
jeffrey.ryan at lemnica.com

www.lemnica.com
www.esotericR.com

R/Finance 2012: Applied Finance with R
www.RinFinance.com

See you in Chicago!!!!



More information about the R-SIG-Finance mailing list