I am trying to programmatically set directory in the Files tab within RStudio. The version of RStuido is 1.1.453. I have tried looking within rstudioapi
package but the relevant functions that I found selectDirectory()
and selectFile()
open an interactive file tree browser and they do not change the Files tab content. I know that one can use setwd()
then in the Files tab use More -> Go To Working Directory but I need to do this fully programmatically.
In summary I wish there was a function setFilesTab(dirpath = )
which I could submit and the Files tab would change the focus to the dirpath
.
Thank you so much for your help and time!