在最新的R更新中更新了rtools35之后,Install_package找不到Rtools [英] Install_package does not find Rtools after rtools35 has been updated in latest R update
问题描述
devtools :: install_github(repo)
继续安装rtools35.exe
devtools::install_github(repo)
keeps installing rtools35.exe
我尝试安装新的作者帐户来自'author / newrepo'的存储库,并不断获取R希望安装新的buildtoools消息。然后安装退出。 Rtools35.exe安装已经完成。我目前正在使用旧版本的R(3.5.0),因为RTools无法用于3.5.1更新
I try installing a new author account repository from 'author/newrepo'and keep getting R wants to install new buildtoools message. Then the installation exits. Rtools35.exe installation has already been completed. I am using older version of R (3.5.0) currentlyy because RTools is not available for the 3.5.1 update
`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,转为依赖项
I previously tried remotes
in 3.5.1 and turned on Quiet, turned of Dependencies
remotes :: install_bitbucket(帐户/仓库,作者,安静= TRUE,依赖关系=假)
但我坚持Rtools错误后获取Rtools。
but i keep getting Rtools after Rtools errors.
我应该尝试 source()
应该我等待新作者回购的完整压缩包吗?
Should I wait for a completed zip of the new author repo?
作者来源可在 bitbucket $ c上的
〜src / master
中找到$ c>
source by author is available in ~src/master
on bitbucket
推荐答案
以下代码可确保确保rtools35.exe被识别。请注意,在 devtools
加载后,必须安装 pkgbuild
来安装工具,然后加载 pkgbuild
然后 find_tools()
解析为true,以允许您要安装的源代码
The following code works to ensure rtools35.exe is recognized. Note that you have to install pkgbuild
to install the tools after the devtools
loads , load pkgbuild
and then find_tools()
resolves to true allowing the source you wish to be installed
## 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
这篇关于在最新的R更新中更新了rtools35之后,Install_package找不到Rtools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!