当前版本的R版本3.6.1是否仍然支持coefplot 2(2019-07-05)--“脚趾的动作”

dsekswqp  于 2023-05-11  发布在  其他
关注(0)|答案(2)|浏览(106)

我使用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'。似乎很傻,因为我不是一个开发人员-但如果它的工作,我会这样做。

uqxowvwt

uqxowvwt1#

(Not真的是一个答案,但太长的评论)
对我来说,这两个install-with-source-from-repo:

install.packages("coefplot2",
    repos="http://www.math.mcmaster.ca/bolker/R",
    type="source")

从github安装:

remotes::install_github("palday/coefplot2",
           subdir = "pkg")

work(后者只是R-forge repo的副本/镜像)-后者更新一些。
我猜问题出在网络驱动器/UNC路径上:还有其他SO问题herehere表明这可能是一个问题。
你能用lib='some_local_directory'试试install.packages()吗(然后是library("coefplot2",lib.loc='some_local_directory')
这篇评论的最后一部分是,我已经从coefplot2转换为broom(用于系数表)+ggplot2/dotwhisker-这是一个更加模块化的系统,更灵活,处理更广泛的模型类型。(假设您可以使用ggplot2解决方案。)

roejwanj

roejwanj2#

尝试install.packages(“coefplot2”,repos=”http://R-Forge.R-project.org“)

相关问题