Closed matteodefelice closed 8 years ago
Thank you for feedback, @matteodefelice.
cams_api
is POSTing a string with xml/text content, but seems like the "multipart" options work just as well as "raw". So should now work with older httr as well. thank you for the update, unfortunately I still get the last error...
What version of xml2 do you have?
I had the 0.1.2, after updating to the latest dev release now your package works!
Ok, thanks. That could be it. CRAN version of xml2 is at 1.0.0.
I've now updated it with conservative dependency settings in the DESCRIPTION file. So if you reinstall it should updated those as well.
It works on Travis-CI (Linux) and on my computer with windows/rstudio with latest CRAN updates (also with httr as github dev version).
If you still get errors, could you please run it with verbose=TRUE
in the call to cams_api/cams_get_radiation
and paste the output here or email it to me.
FYI: the package is also under review to onboard to rOpenSci.
Now it works smoothly, it is very useful.
Hi, I have created an account and I tried to execute the sample commands in the GitHub homepage of the package:
it seems that the argument is now
lng
instead oflon
. I tried the right argument:the problem comes from
httr::POST
incams_api
, in line 95 you set as argumentencode
the valueraw
but my httr doc says:the
encode
raw option is instead present in httr version 1.2.1 but not in the 1.1.0 I have on my Microsoft R 3.3.0. So, you should add a dependency to this particular version of httr.UPDATE: I have installed the latest
httr
from Hadley's repository on GitHub and now I get:and
r$ok
is FALSE.