tests/utf8.R

library(RJSONIO)
if(!is.null(getOption('NYTimesAPI'))) {
 news = getForm('http://api.nytimes.com/svc/search/v1/article',  'api-key' = getOption('NYTimesAPI')["Article Search"], query = "climate change")
} else
 load("newsUTF8.rda")

fromJSON(news)

Try the RJSONIO package in your browser

Any scripts or data that you put into this service are public.

RJSONIO documentation built on Nov. 27, 2023, 5:09 p.m.