I am writing an R package for a lab notebook. One function creates a new directoy with some Rmd files, opens the files using file.edit and changes the current working directory to a new directory. It would be great if I could also change the RStudio Files panel to display this new folder from the function code. Is it possible? I looked at the rstudioapi package. It performs similar actions (for example, the viewer function), but I cannot find a way to change the path in the file navigator panel.
source share