As the title says, I'm attempting to knit an RMarkdown file but I am receiving the error:
Error in contrib.url(repos, "source) l trying to use CRAN without setting a mirror Calls:
<Anonymous>... withvisible -> eval -> eval -> install.packages -> contrib.url Execution halted
The error is called on line 20 of my rmd file where I have my install.packages listed.
install.packages("ggplot2")
install.packages("zoo")
library(ggplot2)
library(zoo)
library(gridExtra)
I'm not quite sure what this would be, I tried taking the package chunk out to see if it would still read an error, but obviously, it errored out when I used one of the packages in my script.
Any suggestion would be appreciated, thank you.