【发布时间】:2016-02-20 17:01:17
【问题描述】:
以下是我得到的错误:
Quitting from lines 46-48 (lesson3_student.rmd) Error in contrib.url(repos, "source") : trying to use CRAN without setting a mirror Calls: <Anonymous> ... withVisible -> eval -> eval -> install.packages -> contrib.url In addition: Warning message: In in_dir(opts_knit$get("root.dir") %n% input_dir(), evaluate::evaluate(code, : You changed the working directory to /Users/Madiyar/Desktop/Facebook Data (probably via setwd()). It will be restored to /Users/Madiyar/Downloads. See the Note section in ?knitr::knit Execution halted
感谢您的帮助
【问题讨论】:
-
请不要将
install.packages(…)代码放在Rmd文档中。大多数人都想管理自己的包库。