最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

r package - Issues Installing ggplot2 and Dependencies in older R version (3.4.3) - Stack Overflow

programmeradmin2浏览0评论

I'm encountering difficulties installing the ggplot2 package in R version 3.4.3. When attempting to install the binary version using install.packages('ggplot2'), I receive the following errot:

> install.packages('ggplot2')Warning in install.packages :
unable to access index for repository .4:
cannot open URL '.4/PACKAGES'
Warning in install.packages :
package ‘ggplot2’ is not available (as a binary package for R version 3.4.3)> 

To address this, I attempted to install a specific version of ggplot2 (version 2.2.1) compatible with R 3.4.3 using the following command:

ggplot_path <- 'https://cran.r- 
project/src/contrib/Archive/ggplot2/ggplot2_2.2.1.tar.gz'
install.packages(ggplot_path, repos = NULL, type = "source")

However, this resulted in dependency errors:

ERROR: dependencies 'digest', 'gtable', 'plyr', 'reshape2', 'scales', 'tibble', 
'lazyeval' are not available for package 'ggplot2'
 * removing 'C:/Program Files/R/R-3.4.3/library/ggplot2'

Previously, I relied on MRAN snapshots to install packages for specific R versions, but since MRAN's retirement, I'm seeking alternative methods to install ggplot2 and its dependencies in R 3.4.3. Is there a repository or archive that provides the necessary package versions compatible with older R versions? Any guidance on resolving these installation issues would be greatly appreciated.

发布评论

评论列表(0)

  1. 暂无评论