[英]Insallation failed on devtools::install_github(“rstudio/rmarkdown”)
I use R 3.4.3, And I need to install devtools::install_github("rstudio/rmarkdown"). 我使用R 3.4.3,并且需要安装devtools :: install_github(“ rstudio / rmarkdown”)。 But the following installation error comes up.
但是出现以下安装错误。
Downloading GitHub repo rstudio/rmarkdown@master
from URL https://api.github.com/repos/rstudio/rmarkdown/zipball/master
Installation failed: zip file 'C:\Users\Buster\AppData\Local\Temp\RtmpWyl4FP\file3bc6c571eec.zip' cannot be opened
Warning messages:
1: GitHub repo contains submodules, may not function as expected!
2: In utils::unzip(src, exdir = target) :
error 1 in extracting from zip file
How can I install this? 我该如何安装呢?
this has been resolved. 这个已经解决了。 I used devtools::install_url(" http://cran.r-project.org/src/contrib/rmarkdown_1.9.tar.gz ")
我使用了devtools :: install_url(“ http://cran.r-project.org/src/contrib/rmarkdown_1.9.tar.gz ”)
As explained in the README for rmarkdown: 如自述文件中有关rmarkdown的说明:
If you are working within RStudio then you can simply install the current release of RStudio (both the rmarkdown package and pandoc are included).
如果您在RStudio中工作,则可以简单地安装RStudio的当前版本(包括rmarkdown软件包和pandoc)。
If you want to use the rmarkdown package outside of RStudio then you can install the package from CRAN as follows:
如果要在RStudio之外使用rmarkdown软件包,则可以按照以下步骤从CRAN安装该软件包:
install.packages("rmarkdown")
This is a much more concise way of doing: 这是一种更简洁的方法:
devtools::install_url("http://cran.r-project.org/src/contrib/rmarkdown_1.9.tar.gz")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.