My rjson package randomly doesn't work. As in, it works fine sometimes, sometimes it fails to load. Not sure why.
I get this error.
Error in library("rjson") : there is no package called ‘rjson’
To try and alleviate this, despite knowing its installed, I added an install line in my script.
install.packages("rjson", repos="http://cran.rstudio.com/")
library(rjson)
Now I get....
Installing package(s) into ‘C:/Users/Tom/Documents/R/win-library/2.15’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/bin/windows/contrib/2.15/rjson_0.2.13.zip' Content type 'application/zip' length 491848 bytes (480 Kb) opened URL downloaded 480 Kb
package ‘rjson’ successfully unpacked and MD5 sums checked Warning: cannot remove prior installation of package ‘rjson’
The downloaded binary packages are in C:\Users\Tom\AppData\Local\Temp\RtmpiOfTqK\downloaded_packages
In R, when I go to "Packages --> Load" for some reason rjson is NOT there. It never has been, even when it worked.
I've naviaged to...
C:\Users\Tom\Documents\R\win-library\2.15
I can confirm the folder for rjson is there.
No idea what to do.
install.packages('rjson')
and it will work. – LyzandeR