问题遇到的现象和发生背景
无法安装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版本
我想要达到的结果
安装成功