Reputation: 345
I am receiving this error when trying to knit my R markdown sheet
Error in contrib.url(repos, "source") : trying to use CRAN without setting a mirror calls: ... withVisible -> eval -> eval -> install.packages -> contrib.url Execution halted
Does anyone have any experience with this?
Upvotes: 1
Views: 458
Reputation: 4087
Without the exact code, it is difficult to assess the problem. However, as @NelsonGon writes, this is usually the error from running an installation (install.packages()
inside a chunk.
Instead, the library should be installed beforehand and loaded with library(example
) inside a chunk to make it available for the markdown environment.
Upvotes: 1