I created a package which gets Twitter data with the twitteR package. But to do so it needs the authentication. By now I created a .Rda file on my local system containing the Twitter handshake and placed the file in my package. But when I want to execute the function on OpenCPU it tells me:
Error: cannot open the connection
In call:
readChar(con, 5L, useBytes = TRUE)
So it seems that it can´t find the file.
- How can I load the .Rda file in OpenCPU?
- Can I add it to my package so that it is loaded when the package is loaded?
- Is there a better/easier way for the authentication process?
Thanks for your help
data(auth, envir=environment()) registerTwitterOAuth(twitCred)
When I run it locally it works finde. Lazyload loads the data and the commands load it into the environment. But when I call the function in the OpenCPU cloud I get the following error:Error: object 'twitCred' not found In call: inherits(oauth, "OAuth“)
So it seems like it can´t find the object twitCred which is in the auth.Rda file. – JulianHi Apr 25 '14 at 18:24