Error when rendering to PDF

Hi, I'm getting the following error when I try to render my R document to pdf, how could I fix this?
Error in .chooseMirror():
! cannot choose a CRAN mirror non-interactively

  1. utils::chooseCRANmirror(graphics = FALSE)
  2. utils:::.chooseMirror(m, "CRAN", graphics, ind)

Execution halted

Are you trying to install a package in the document you are rendering? You should install the package separately, not in a document.

There were a few packages in the document but apparently I hadn't installed the caret package. I was finally able to render the document to pdf, I guess the package installed finally but I'm not too sure. I was finally able to render to pdf so I guess something changed!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.