launchPro is a small Python CLI for opening local Positron or RStudio projects, optional Shiny project folders, and project GitHub pages from a single command.
Current version: 0.1.5
- Python 3.9 or newer
- A local project folder
- An
.Rprojfile only when opening the project in RStudio - Windows, macOS or Linux
The recommended way to install launchPro is using pipx, which installs the package in an isolated environment and automatically manages your PATH.
git clone https://github.com/mi-erasmusmc/launchPro
cd launchPro
pipx install .Show help:
launch --helpRegister a project first:
launch register MyProject ~/Documents/my-project - https://github.com/your-org/my-project
launch register MyStudy ~/Documents/my-study ~/Documents/my-study/inst/shiny/App https://github.com/your-org/my-study --app rstudioThen open the main project folder:
launch MyProject -pOpen the same project in RStudio:
launch MyProject -p --app rstudioOpen the Shiny project and GitHub page:
launch MyStudy -s -gOpen the project folder in a terminal:
launch MyProject -tIf no flag is provided, launch uses the registered app for that project, or Positron when no project default was saved:
launch MyProjectChoose the project application explicitly with --app positron or --app rstudio.
Add or update a project entry in the app-data projects.json:
launch register MyProject ~/Documents/my-project - https://github.com/your-org/my-projectSave a default project application while registering:
launch register MyProject ~/Documents/my-project - https://github.com/your-org/my-project --app rstudioUse - when the project does not have a Shiny folder. If it does, pass the Shiny directory instead:
launch register MyStudy ~/Documents/my-study ~/Documents/my-study/inst/shiny/App https://github.com/your-org/my-study- Paths may use
~and environment variables. - Positron opens the project or Shiny folder as a workspace target, even when that folder does not contain an
.Rprojfile. - RStudio still requires the target folder to contain exactly one
.Rprojfile. - On macOS,
-ttargets the active terminal app instead of falling back toTerminal.app.Terminal,iTerm2, andAlacrittyare supported. - On macOS, the
Alacrittypath uses Accessibility-driven keystrokes for the active window and falls back toalacritty msg create-window --working-directory ...if needed. - On macOS it opens project files in the selected app with
open -a. - On Linux and Windows it looks for the selected
positronorrstudioexecutable inPATH. - On Linux, terminal detection includes
gnome-terminal,konsole,xfce4-terminal,alacritty, andkitty. - For local development without installing, run
./launch ...from the repository root.
This project is licensed under the Apache License 2.0. See LICENSE for the full text.