如何更改 RStudio(或 R)中的默认目录? [英] How do you change the default directory in RStudio (or R)?

查看:21
本文介绍了如何更改 RStudio(或 R)中的默认目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我咨询了http://www.rstudio.com/ide/docs/using/workspaces并尝试了 setwd 代码并单击更多 --> 设置为工作目录选项.但是,下次我关闭并打开 RStudio 时,它并没有将我的目录更改为我想要的目录.

I consulted http://www.rstudio.com/ide/docs/using/workspaces and tried the setwd code and clicking on More --> Set as working directory options. However, the next time I closed and opened RStudio, it did NOT change my directory to the one I wanted.

如何设置目录,以免每次打开 RStudio 时都更改?

How do I set the directory so I don't have change it each time I open RStudio?

谢谢.

推荐答案

不确定这是否是您要找的,但在工具下 |全局选项...(alt-TG)有一种方法可以设置默认目录.

Not sure if this is what you're looking for, but under Tools | Global Options... (alt-TG) there is a way to set the default directory.

这篇关于如何更改 RStudio(或 R)中的默认目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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