无法安装ggplot2,大捞help
install.packages("ggplot2")
运行两次会有两种报错结果
一、报错1
Error in install.packages : Unrecognized response “install.packages("ggplot2")”
二、报错2
also installing the dependencies ‘cli’, ‘farver’, ‘RColorBrewer’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘vctrs’, ‘glue’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.1.1 3.3.0 TRUE
farver 2.1.0 2.1.1 TRUE
RColorBrewer 1.1-2 1.1-3 FALSE
fansi 1.0.2 1.0.3 TRUE
magrittr 2.0.2 2.0.3 TRUE
pillar 1.7.0 1.8.0 FALSE
vctrs 0.3.8 0.4.1 TRUE
glue 1.6.1 1.6.2 TRUE
rlang 1.0.1 1.0.4 TRUE
scales 1.1.1 1.2.0 FALSE
tibble 3.1.6 3.1.8 TRUE
withr 2.4.3 2.5.0 FALSE
ggplot2 3.3.5 3.3.6 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel)
1、修改镜像几个china我都试过了不行
2、Rstudio版本
安装成功
问题主要原因是镜像下载不全导致的,沿着这个思路是找一找国内的镜像
也可以install.packages("ggplot2", repos = "http://cran.r-project.org")
望采纳。
未识别出响应