【发布时间】:2018-11-05 23:26:32
【问题描述】:
我无法从 Github 安装任何 R 包,尽管我之前已经这样做了好几次。我在 R 版本 3.5.0 和 3.5.1 上都试过了。
尝试使用以下方式安装“https://github.com/rstudio/bookdown/bookdown-master.zip”:
devtools::install_github('rstudio/bookdown')
githubinstall::githubinstall("bookdown")
或下载并尝试在本地加载...
install_local("/Users/Brian/Documents/bookdown-master.zip")
总是给我错误信息
Error in readLines(f) :
(converted from warning) incomplete final line found on '/Users/Brian/.Rprofile'
我也尝试了其他解决方法,但似乎所有的道路都会导致此错误消息,我找不到任何可以告诉我它与什么相关的东西。
有什么想法吗?
【问题讨论】:
-
听起来您的 Rprofile 文件中的某些内容格式不正确。 Here's 另一个问题,虽然是一个封闭的问题,但有一些链接可能会有所帮助
-
谢谢卡米尔。我没主意了。该信息帮助我解决了我的问题。我没有意识到 .Rprofile 是我可以编辑的东西 - 但显然我以前做过。