简体   繁体   中英

Set the Rstudio files pane directory from the R console?

Is there any interaction from R to RStudio possible?

I would really like, for example, to set the RStudio files pane directory from the R console, like setFilesPane(getwd()) or such. I haven't found anything though.

Edit: To clarify: In RStudio there is a "files pane" (bottom right)

在此处输入图片说明

This can be navigated like any file explorer. However I would like to set the files pane directory (the directory whose contents are shown in the files pane) from my R code instead of having to navigate to my project folder by hand every time. Is there any way to do this?

Was answered by @docendodiscimus:

click the arrow at the top of the console pane (bottom left) Thanks!

rstudioapi::filesPaneNavigate()应该做你正在寻找的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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