I have several problems when I try to extract data from JSON format file that is in a URL
When I use: jsonlite
grades=jsonlite::fromJSON("url.json") Error in open.connection(con, "rb") : HTTP error 403.
When I use RJONIO
grades=RJSONIO::fromJSON("url.json") Error in fromJSON(content, handler, default.size, depth, allowComments, : invalid JSON input
When I use rjson
grades=rjson::fromJSON("url.json") Error in rjson::fromJSON("url.json") : unexpected character 'h'
What can it be? How can I do to fix and extract the data?
Thank you
rjson::fromJSON("query to the API I'm trying to reach")
works totally fine for me. What's the URL you're trying to read from? – symbolrush