rstudio / rstudioapi

Safely access RStudio's API (when available)
http://rstudio.github.io/rstudioapi
Other
165 stars 35 forks source link

Add function for specifying Files pane location #204

Closed blairj09 closed 3 years ago

blairj09 commented 3 years ago

Add the ability to programmatically specify the location shown in the Files pane. Perhaps something like

rstudioapi::filesPane(path = "~")
blairj09 commented 3 years ago

@kevinushey I downloaded the latest version of the package from GH and see the filesPaneNavigate() function. However, when I try to use it I get the following:

rstudioapi::filesPaneNavigate("~")
#> Error: Function filesPaneNavigate not found in RStudio

This is with RStudio Desktop Pro Version 1.4.940-1

kevinushey commented 3 years ago

I think we don't have Pro builds with this particular API just yet -- should hopefully be coming soon (1.4.950+)

blairj09 commented 3 years ago

Confirmed this is working with the latest dailies. It would be nice if there was an optional argument to activate the files pane as well:

rstudioapi::filesPaneNavigate("~", show = TRUE)