proj_activate: Activate a project

View source: R/proj.R

proj_activateR Documentation

Activate a project

Description

Activates a project in the usethis, R session, and (if relevant) RStudio senses. If you are in RStudio, this will open a new RStudio session. If not, it will change the working directory and active project.

Usage

proj_activate(path)

Arguments

path

Project directory

Details

  • If using RStudio desktop, the project is opened in a new session.

    • If using Positron, the project is opened in a new window.

    • If using RStudio or Positron on a server, the project is opened in a new browser tab.

    • Otherwise, the working directory and active project is changed in the current R session.

Value

Single logical value indicating if current session is modified.


usethis documentation built on Sept. 9, 2025, 5:25 p.m.