Error when compiling in R Markdown -
i have chuck of code i'm trying compile in r markdown.
library(jsonlite) library(rvest) library(rjsonio) library(ggplot2) library(dplyr) library(data.table) #create function download movie info rottenrate <- function(movie){ require(rjsonio) link <- paste("http://www.omdbapi.com/?t=", movie, "&y=&plot=short&r=json&tomatoes=true", sep = "") jsondata <- fromjson(link) return(jsondata) } vrottenrate <- vectorize(rottenrate, "movie", simplify = f)
when run i'm met
error in file(con, "r") : cannot open connection calls: <anonymous> ... <anonymous> -> fromjson -> fromjson -> -> structure -> unique
Comments
Post a Comment