I use OSX Yosemite with XQuartz, as suggested in other questions, and I try to publish a laptop, but I get the same error every time. It looks like a .R file:
#' --- #' title: "MLB Payroll Analysis"
When I click Compile Notebook, this is the result:
|...................... | 33% ordinary text without R code |........................................... | 67% label: unnamed-chunk-1 processing file: payroll.spin.Rmd Quitting from lines 9-90 (payroll.spin.Rmd) Error in contrib.url(repos, "source") : trying to use CRAN without setting a mirror Calls: <Anonymous> ... withVisible -> eval -> eval -> install.packages -> contrib.url
I looked at other questions on how to fix this, but to no avail. I made corrections on the command line, but to no avail. Can someone tell me what I am doing wrong? Thank you.
source share