You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, I think that's a RCurl bug (I don't think httr uses methods anywhere). And really it's an R CMD check bug that this doesn't get picked up automatically.
Similar problem for me. When I try to source a https link using source_url (from the devtools package) I'll get the following error when using Rscript (via R it runs fine):
Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) :
could not find function "getClass"
Calls: source_url ... handle_url -> find_handle -> handle -> getCurlHandle -> .Call
However, I've discovered that the problem disappears if I add
library(RCurl)
before calling source_url.
A script I've written using httr works fine interactively, but dies with the following error when run via Rscript:
The workaround is to add
library(methods)
to the user code. Presumably httr should do that...The text was updated successfully, but these errors were encountered: