我使用 coefplot2 绘制生态数据的回归估计。我有一台新电脑,所以只是设置。所有其他适用于新设置的包和代码。但是非常喜欢继续使用 coefplot2 但需要帮助。
我已尝试使用 R forge 和 bolker 源站点安装 coefplot2,如这里的几篇文章和其他站点上的推荐,但没有运气。
install.packages("coefplot2", repos="http://www.math.mcmaster.ca/bolker/R", type="source")
install.packages("coefplot2",repos="http://r-forge.r-project.org")
> install.packages("coefplot2", repos="http://www.math.mcmaster.ca/bolker/R", type="source")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘\\staff.ad.griffith.edu.au/ud/fr/s2903680/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'http://www.math.mcmaster.ca/bolker/R/src/contrib/coefplot2_0.1.3.2.tar.gz'
Content type 'application/x-gzip' length 1357869 bytes (1.3 MB)
downloaded 1.3 MB
'\\staff.ad.griffith.edu.au\ud\fr\s2903680\Desktop\Research\data_analysis_pumice\havre'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'coefplot2' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in findpack(package, lib.loc) :
there is no package called 'coefplot2'
Calls: <Anonymous> -> findpack
Execution halted
ERROR: lazy loading failed for package 'coefplot2'
* removing '\\staff.ad.griffith.edu.au/ud/fr/s2903680/Documents/R/win-library/3.6/coefplot2'
Warning in install.packages :
installation of package ‘coefplot2’ had non-zero exit status
已经安装了以前的依赖项,例如安装要求安装“reshape”。我想知道我是否需要安装“rtools”。看起来很傻,因为我不是开发人员 - 但如果它有效,我会这样做。