> devtools::install_github("GreenleafLab/ArchR", ref="master", repos = BiocManager::repositories())
Downloading GitHub repo GreenleafLab/ArchR@master
在运行上面面R命令出现报错 显示无法安装
Error: Failed to install 'ArchR' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> pkgbuild::check_build_tools(debug = TRUE)
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
在GitHub上找到解决方法,输入
options(buildtools.check = function(action) TRUE )
这行代码再运行即可安装
但是设置 options(buildtools.check = function(action) TRUE )
将禁用构建工具的检查,这意味着在尝试安装包时将不再执行编译工具的检查。虽然这可以让你继续安装包,但是在没有正确的编译工具链的情况下,可能会导致安装失败或者出现其他不可预料的问题。
所以如果不是实在没办法的情况最好不要使用这个方法。