Centralized R project management with VS Code/Windsurf integration for coursework and research.
- Open workspace:
code r-workspace.code-workspace - Create project:
./init-project.sh <name> [analysis|package|shiny|quarto]
.
├── .vscode/ # VS Code config and R snippets
├── config/R/ # Lint config and helpers
├── projects/ # Your R projects live here
├── template/ # Legacy minimal skeleton (kept)
├── templates/ # Reserved for future templates
├── init-project.sh # Project scaffolding script
├── .Rprofile # Workspace-wide R config
├── r-workspace.code-workspace
├── install_packages.R
└── workspace-readme.md # Detailed workspace docs
- Open the workspace in VS Code/Windsurf
code r-workspace.code-workspace- Create a new project
cd /home/verlyn13/Projects/jjohnson-47/R
./init-project.sh my-analysis # analysis (default)
./init-project.sh my-package package # package template- Initialize in the project terminal
renv::init()
pak::pak(c("tidyverse", "here"))- Uses
radianas R terminal,httpgdfor plots - R LSP enabled with diagnostics and session watcher
- Custom snippets in
.vscode/r.snippets
lintrrules:config/R/.lintr.R- Helper utilities in
config/R/linter_setup.R
template/remains for compatibility with older scriptstemplates/will be populated with canonical templates later- See
workspace-readme.mdfor detailed guides and tips