ajschumacher / rjstat

read and write JSON-stat with R
Other
31 stars 6 forks source link

dependencies not working? #1

Closed ajschumacher closed 10 years ago

ajschumacher commented 10 years ago

got this email:

Hi I tried to install your rjstat from github according to your instructions but got the following error:


install_github("rjstat", "ajschumacher") Installing github repo rjstat/master from ajschumacher Downloading rjstat.zip from https://github.com/ajschumacher/rjstat/archive/master.zip Installing package from /tmp/RtmpkwKy6x/rjstat.zip arguments 'minimized' and 'invisible' are for Windows only Installing rjstat '/usr/lib/R/bin/R' --vanilla CMD INSTALL \ '/tmp/RtmpkwKy6x/devtools67c13e10e28c/rjstat-master' \ --library='/usr/local/lib/R/site-library' --install-tests

  • installing source package 'rjstat' ... * R * preparing package for lazy loading Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'rjson' ERROR: lazy loading failed for package 'rjstat'
  • removing '/usr/local/lib/R/site-library/rjstat' Error: Command failed (1)

I would appreciate any suggestion resolving this Thanks

I think just installing rjson fixes this, but shouldn't dependencies get resolved by R?

badosa commented 10 years ago

I think just installing rjson fixes this

Yes. When I tried rjstat for the first time I had the same problem and I figured installing rjson first would fix it. And it did.

But I have no idea how to force resolving package dependencies, sorry.

ajschumacher commented 10 years ago

This is resolved now thanks to @hmalmedal's reimplementation and general improvements, merged in 4246dc141a61947833ba68efb435c9260f61681f. (Also now depends on jsonlite, not rjson.)