The goal of projrsimple is to make it easy to run a clean project workflow.
It helps you initialise a reproducible project structure with pre‐defined directories, run analysis scripts, and ensure clean output directories with minimal effort.
Installation
You can install the development version of projrsimple like so:
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github("MiguelRodo/projrsimple")TL;DR
- Install
projrsimple(see above). - Open an R session in your project directory (folder where you want to work).
- Run
projr_init()to initialise your project. - Write code in scripts (
.R,.Rmd,.qmdand/or Quarto projects) in the project directory. - Run
projr_runto execute all scripts. Save outputs to_outputdirectory. - View rendered documents in the
docsdirectory.
To connect to GitHub automatically, run projr_init(init_github = TRUE) (step 3) after the following steps:
- Create a GitHub account (link).
- Set up a personal access token (PAT) in R (instructions).
Details
For details, view the introductory article on the package website or as a vignette (vignette("intro", package = "projrsimple")).
Citation
To cite projrsimple in publications, use:
Miguel Rodo (2024). projrsimple: Initialise and run a simple project workflow. Version 1.0.0. Available at: https://github.com/MiguelRodo/projrsimple.
Alternatively, in BibTeX format: