jsonlite for R gives error when trying to install

Chris picture Chris · Jun 8, 2016 · Viewed 10.2k times · Source

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

Jim G. picture Jim G. · Aug 24, 2016

Like @user5249203 said:

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