Error when compiling pdf using knitr in rstudio

倖福魔咒の 提交于 2019-11-30 13:08:16

Although I still do not understand why, but from the comments above, the problem seems to come from ~/.Rprofile (in particular, setwd()). Clearing it up solves the problem.

Note you may have other startup profile files. .Rprofile is only one possibility. See ?Startup for more information. For example, if you are on Windows, you may need to take a look at C:\Program Files\R\etc\Rprofile.site if it exists.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!