Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jsonlite for R gives error when trying to install

Tags:

r

jsonlite

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?

like image 284
Chris Avatar asked Jun 08 '16 16:06

Chris


People also ask

What is jsonlite package in R?

jsonlite: A Simple and Robust JSON Parser and Generator for R. A reasonably fast JSON parser and generator, optimized for statistical data and the web. Offers simple, flexible tools for working with JSON in R, and is particularly powerful for building pipelines and interacting with a web API.


1 Answers

Like @user5249203 said:

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

like image 70
Jim G. Avatar answered Sep 30 '22 13:09

Jim G.