简体   繁体   English

如何将工作目录快速设置为 RStudio 中文件的位置?

[英]How can you set the working directory quickly to a file's location in RStudio?

The old method is the following :旧方法如下:

在此处输入图像描述

There's a new feature on RStudio. RStudio 上有一个新功能。
Just right-click on the a script's tab and choose "Set Working Directory"只需右键单击脚本的选项卡并选择“设置工作目录”

在此处输入图像描述

The script has to be saved first as an R file for this to work (comment from @maRvin)该脚本必须首先保存为 R 文件才能正常工作(来自@maRvin 的评论)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM