admin管理员组文章数量:1392007
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.
本文标签: r packageIssues Installing ggplot2 and Dependencies in older R version (343)Stack Overflow
版权声明:本文标题:r package - Issues Installing ggplot2 and Dependencies in older R version (3.4.3) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744657587a2618060.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论