Open RStudio project by name or interactively. The projects list is read from files that contain project lists.
open_project(
pattern = NULL,
new_session = if (interactive()) NULL else TRUE,
proj_list = NULL,
proj_list_path = NULL,
only_available = TRUE,
name = NULL,
negate = FALSE
)
(character) regular expression to narrow down the list of possible options.
(logical|NULL
) should the project be opened in a new
session, or should the current RStudio session switch to that project?
Note that TRUE
values are only supported with RStudio Desktop and
RStudio Server Pro.
If NULL
, user will have to choose interactively.
(data frame) The result of read_projects()
or NULL
.
(string) The path to the file with the list of project
paths. If proj_list
is not NULL
, then proj_list_path
is ignored.
(logical) If TRUE
, non-existing projects and projects
with broken paths are removed from the list of choices.
(string|NULL
) The name of the project or NULL
to choose
a project interactively.
(logical) If TRUE
, then the options defined by pattern
are
excluded.
Opens the indicated project.