Chris Chris - 3 months ago 31
R Question

jsonlite for R gives error when trying to install

Where does one get jsonlite? Apparently it is missing from CRAN?

> install.packages('jsonlite')


Gives:

Installing package into ‘C:/Users/cbusch/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/jsonlite_0.9.20.zip'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/jsonlite_0.9.20.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/jsonlite_0.9.20.zip'
Warning in install.packages :
download of package ‘jsonlite’ failed


Any suggestions?

Answer

Like @user5249203 said:

install.packages('jsonlite', dependencies=TRUE, repos='http://cran.rstudio.com/')