R包devtools似乎是使用该install_github()函数直接从其github存储库安装R包的首选方法.
这样做时,不仅安装了已解决的github-package,还安装了直接的CRAN依赖项,即包的Description/Namespace文件中定义的Depends和Imports.
但是,我想知道是否需要间接需要的包,例如Depends和Imports包所需的包,也会自动安装.
例如,在安装DT包通过时install_github("rstudio/DT"),htmltools也会安装(设置dependencies=TRUE)Imports包,但不Rcpp包括前者所依赖的包(R 3.3.1,Rtools34,Win10,x64).这些包需要以另一种方式安装吗?
在R v3.3.3和64位Win10上使用Rtools一段时间后,我在尝试本地安装时突然遇到以下错误,即,compile_dll(pkg = "...", quiet = FALSE)或
load_all(pkg = "...")通过devtools以下任何包:
*** fatal error - cygheap base mismatch detected
Run Code Online (Sandbox Code Playgroud)
以及错误输出中的以下建议:
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you …Run Code Online (Sandbox Code Playgroud)