如何在另一台机器上克隆 RStudio 环境 [英] how to clone an RStudio environment on a different machine

查看:64
本文介绍了如何在另一台机器上克隆 RStudio 环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在加快使用 R 的速度,我想知道最有效的方法是将 RStudio 环境(尤其是软件包安装)从一台机器克隆到另一台机器.我希望能够从我的台式机切换到我的笔记本电脑,但是我在工作时非常频繁地向台式机添加软件包,并且想要一种简单的方法来确保在笔记本电脑上安装相同的软件包.

i've been getting up to speed using R of late, and am wondering what the most efficient way is to clone an RStudio environment, especially the package installations, from one machine to another. i'd like to be able to switch from my desktop machine to my laptop, but i am adding packages very frequently to the desktop as i work and would like a simple way to make sure the same packages get installed on the laptop.

非常感谢任何帮助

ps.并非我安装的所有东西都来自 CRAN...有些是从 github 中获取的软件包

ps. not everything i'm installing is from CRAN...some are packages taken from github

推荐答案

如果你有不止几台机器需要维护相同的 R 配置,我认为你应该考虑建立自己的本地 R 存储库.

If you have more than a couple of machine to maintain with the same R configuration, I think you should consider setting up your own local R repository.

我会把你重定向到另一个 SO 问题:创建本地 R 包存储库

And I will just redirect you to another SO question here: Creating a local R package repository

您还可以在 R 手册.

完成此操作后,您只需更新本地 R 存储库,包将在所有计算机(Windows 或 Unix)上更新

Once this is done, you just have to update the local R repository and the packages will be updated on all machines, Windows or Unix

这篇关于如何在另一台机器上克隆 RStudio 环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆