You're problem is not related to Quandl (or finance). When you run Rscript, it does not automatically load all the same packages loaded by the interactive window. In particular, Rscript does not automatically load the 'methods' package (which defines 'getClass'), so the R interpreter cannot find the 'getClass' function.
As far as I know, the solution is to manually load all the required packages, including 'methods'. Perhaps someone wiser than me can suggest an easier solution. Paul Teetor, Elgin, IL USA http://quantdevel.com/public ________________________________ From: ce <[email protected]> To: [email protected] Sent: Sunday, January 19, 2014 8:26 PM Subject: [R-SIG-Finance] Quandl error: Error in getCurlHandle() : could not find function "getClass" Hi all, Following script with Rscript doesn't work. but if I copy paste in R intera[[elided Yahoo spam]] #!/usr/bin/Rscript library(Quandl) # token <- Quandl.auth(".....") # Please put your own token Quandl.auth(token) A <- Quandl("QUANDL/ARS",start_date="1990-01-01" ) print(A) Error in getCurlHandle() : could not find function "getClass" Calls: Quandl -> getURL -> curlPerform -> getCurlHandle -> .Call _______________________________________________ [email protected] 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. [[alternative HTML version deleted]]
_______________________________________________ [email protected] 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.
