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

查看:599
本文介绍了如何更改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天全站免登陆