设置RStudio Portable默认R版本 [英] Setting up RStudio Portable Default R version

查看:466
本文介绍了设置RStudio Portable默认R版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现了R和RStudio的便携式版本@

I recently discovered a portable version of R and RStudio @

http://rportable.sourceforge.net/

开源之石!

无论如何,我在大学里从一台PC跳到另一台PC,我想让Portable R-studio将Portable R识别为默认R版本.该大学的大多数计算机已经安装了多个r版本,并且RStudio使用R的其中一个版本.当我进入全局选项"以更改默认版本时,它不会在USB驱动器上看到"便携式R.

At any-rate, I am jumping from pc to pc at my university, and I'd like to get Portable R-studio to recognize Portable R as the default R version. Most computers at the university already have several versions of r-installed, and RStudio uses one of those versions of R. When I go into the Global Options to change the default version, it does not "see" portable R on the USB drive.

基本上,我希望我可以运行R,而不必不断下载软件包,指定工作目录,从Google Drive下载脚本,数据等.

I am basically hopping I can run R without constantly having to download packages, specifying the work directory, downloading Scripts, data from Google Drive, etc...

有什么建议吗?我开着感谢您的帮助.

Any suggestions? I am open. Thanks for your help.

推荐答案

我不需要触摸注册表.

我首先从Sourceforge安装了R Portable,然后又安装了R Studio Portable. 首次启动R Studio之后,向我展示了选择要使用的R安装的选项,如

I first installed R portable and then R Studio portable, both from Sourceforge. After launching R Studio for the first time, I was shown the option of choosing the installation of R to be used, as shown in

https://support. rstudio.com/hc/zh-CN/articles/200486138-使用不同版本的R

我浏览到可执行文件所在的分支\ PortableApps \ R-Portable \ App \ R-Portable \ bin.在那里,我选择了64位版本.

I browsed to branch \PortableApps\R-Portable\App\R-Portable\bin, where executables are located. There I selected the 64-bit version.

如果以后要更改使用的版本,请打开R Studio并转到工具"->选项"->常规"->"R版本".

If you want to change later the version used, you open R Studio and go to Tools -> Option -> General -> R Version.

这避免了使用便携式应用程序的两个优点来修改注册表:

This avoids modifying the registry, with the two advantages of Portable Apps:

  1. 在系统中没有任何应用程序的痕迹(至少,温和的).
  2. 真正便携(至少,至少如此).

这篇关于设置RStudio Portable默认R版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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