R 3.2.2: the package "rjson" and "RJSONIO" are installed, but an error using "fromJSON"

I'm having trouble using the fromJSON command. I am trying to collect instagram data using their API, and this command does not work. I use R and I have both packages for converting JSON to R, but I continue to receive the following error: Error: could not find function "fromJSON"

I am using R Studio and R 3.2.2 for Windows 8 x64. I tried searching and could not find a solution. Any help would be greatly appreciated.

0
source share
2 answers

Installing the package alone is not enough. You also need to load the library ... Use library(rjson) or library(RJSONIO) or ... depending on which package you prefer, before calling any functions in it.

+1
source

If you just installed the package, try rjson :: fromJSON (), not just from JSON ()

0
source

Source: https://habr.com/ru/post/1012952/


All Articles