I am trying to work with JSON in R Studio and have installed the RJSONIO and Rcurl packages successfully but the getURL function is not working. I keep getting an error saying that the getURL function cannot be found.
package ‘RCurl’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘RCurl’
> AccidentURL <- "http://data.maryland.gov/api/views/pdvh-tf2u/rows.json?
accessType=DOWNLOAD"
> apiResult <- getURL(AccidentURL)
Error in getURL(AccidentURL) : could not find function "getURL"
Any suggestions on how to get this function to work or how to build the function myself would be appreciated.