网站首页 > 教程文章 正文
方法一:
打开RStudio,输入options()$repos查看默认镜像源情况
options()$repos
打开tools工具栏,找到Global Options
找到Packages,点击右边的add
出现添加镜像源的对话框,name处填入aliyun,url填入:https://mirrors.aliyun.com/CRAN/, 点击ok保存
在命令栏输入options()$repos查看镜像源情况
方法二:
找到C盘,program files文件下,R/R-4.0.3/etc中的Rprofile文件
原来的:
# Things you might want to change
# options(papersize="a4")
# options(editor="notepad")
# options(pager="internal")
# set the default help type
# options(help_type="text")
options(help_type="html")
# set a site library
# .Library.site <- file.path(chartr("\\", "/", R.home()), "site-library")
# set a CRAN mirror
# local({r <- getOption("repos")
# r["CRAN"] <- "http://my.local.cran"
# options(repos=r)})
# Give a fortune cookie, but only to interactive sessions
# (This would need the fortunes package to be installed.)
# if (interactive())
# fortunes::fortune()
修改后:
# set a CRAN mirror
local({r <- getOption("repos")
r["CRAN"] <- "https://mirrors.aliyun.com/CRAN/"
options(repos=r)})
本文转自:https://blog.csdn.net/sxqcj007/article/details/123181776
- 上一篇: LINUX 国内源以及镜像源更换方法
- 下一篇: php composer国内镜像
猜你喜欢
- 2024-12-01 Zabbix Agent安装部署
- 2024-12-01 php composer国内镜像
- 2024-12-01 LINUX 国内源以及镜像源更换方法
- 2024-12-01 tekton的最新版本安装教程和发布镜像的示例
- 2024-12-01 【Python大语言模型系列】云服务器部署dify大模型应用开发平台
- 2024-12-01 docker配置阿里镜像加速器
- 2024-12-01 Docker配置-阿里云镜像仓库
- 2024-12-01 K8s集群
- 2024-12-01 利用阿里云镜像加速器对Docker镜像源进行加速
- 2024-12-01 docker配置阿里云镜像加速
- 最近发表
- 标签列表
-
- location.href (44)
- document.ready (36)
- git checkout -b (34)
- 跃点数 (35)
- 阿里云镜像地址 (33)
- qt qmessagebox (36)
- md5 sha1 (32)
- mybatis plus page (35)
- semaphore 使用详解 (32)
- update from 语句 (32)
- vue @scroll (38)
- 堆栈区别 (33)
- 在线子域名爆破 (32)
- 什么是容器 (33)
- sha1 md5 (33)
- navicat导出数据 (34)
- 阿里云acp考试 (33)
- 阿里云 nacos (34)
- redhat官网下载镜像 (36)
- srs服务器 (33)
- pico开发者 (33)
- https的端口号 (34)
- vscode更改主题 (35)
- 阿里云资源池 (34)
- os.path.join (33)