devtools::install_github(repo)
继续安装rtools35.exe
我尝试从'author / newrepo'安装一个新的作者帐户存储库,并不断让R想要安装新的buildtoools消息。然后安装退出。 Rtools35.exe安装已经完成。我目前正在使用旧版本的R(3.5.0),因为RTools无法用于3.5.1更新
`devtools::install_github(repo)`
Downloading bitbucket repo author/repo@master
trying URL 'https://cran.rstudio.com/bin/windows/Rtools/Rtools35.exe'
Content type 'application/x-msdos-program' length 108622512 bytes (103.6
MB)
downloaded 103.6 MB
Error in system(full, intern = TRUE, ignore.stderr = quiet, ...) :
running command '"G:/Program Files/R/R-3.5.0/bin/x64/R" --no-site-file
--no-en viron --no-save --no-restore --quiet CMD config CC' had status 2
我以前在3.5.1中尝试过remotes
并打开了Quiet(从属关系)
remotes::install_bitbucket(account/repo,author,quiet=TRUE,dependencies=FALSE)
但是在Rtools错误之后,我仍然得到Rtools。
我应该尝试source()
我应该等待新作者回购的完整压缩包吗?
作者的来源可在~src/master
的{{1}}中找到
答案 0 :(得分:1)
以下代码用于确保识别rtools35.exe。请注意,必须先安装pkgbuild
,然后再加载devtools
,再加载pkgbuild
,然后find_tools()
解析为true,以允许您希望安装的源安装工具。>
## code from https://github.com/r-lib/devtools/issues/1772#issuecomment-384406969 ##
install.packages("pkgbuild","G:/Program Files/R/R-3.5.1/library") # pkgbuild is not available (for R version 3.5.0)
install.packages("devtools","G:/Program Files/R/R-3.5.1/library") # make sure you have the latest version from CRAN
library(devtools, lib.loc="G:/Program Files/R/R-3.5.1/library") # load package
devtools::install_github("r-lib/pkgbuild") # install updated version of pkgbuild from GitHub
library(pkgbuild, lib.loc = "G:/Program Files/R/R-3.5.1/library") # load package
find_rtools() # should be TRUE, assuming you have Rtools 3.5