我使用coefplot 2绘制生态数据的回归估计。我有一台新电脑,所以刚刚安装好。所有其他软件包和代码都可以用于新的设置。但是非常喜欢继续使用coefplot 2,但需要帮助。
我曾尝试使用R forge和bolker源站点安装coefplot 2,在这里和其他网站的几个帖子中推荐如下,没有运气。
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
已经安装了以前的依赖项,例如安装要求安装“重塑”。我想知道我是否需要安装'rtools'。似乎很傻,因为我不是一个开发人员-但如果它的工作,我会这样做。
2条答案
按热度按时间uqxowvwt1#
(Not真的是一个答案,但太长的评论)
对我来说,这两个install-with-source-from-repo:
从github安装:
work(后者只是R-forge repo的副本/镜像)-后者更新一些。
我猜问题出在网络驱动器/UNC路径上:还有其他SO问题here和here表明这可能是一个问题。
你能用
lib='some_local_directory'
试试install.packages()
吗(然后是library("coefplot2",lib.loc='some_local_directory')
?这篇评论的最后一部分是,我已经从
coefplot2
转换为broom
(用于系数表)+ggplot2
/dotwhisker
-这是一个更加模块化的系统,更灵活,处理更广泛的模型类型。(假设您可以使用ggplot2
解决方案。)roejwanj2#
尝试install.packages(“coefplot2”,repos=”http://R-Forge.R-project.org“)