全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4918 2
2022-02-04
大家好~请问下,在安装ggplot的时候,运行
install.packages("ggplot2")
library(ggplot2),报错,应该怎么解决?谢谢!!!


报错如下:
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
将程序包安装入‘C:/Users/lenovolenovo/Documents/R/win-library/4.1’
(因为‘lib’没有被指定)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘ggplot2’ is not available for this version of R


A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.1:
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/PACKAGES'

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2022-2-8 13:43:41
包没装上,在 global options 里 package 项那里换成中国的仓库
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2022-2-10 22:23:53
辛苦啦,多谢多谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群