Organising Projects

A framework for organizing R projects with a standardized structure. Most analyses consist of three main components: code, results, and data, each with different requirements such as version control, sharing, and encryption. This package provides tools to set up and manage project directories, handle file paths consistently across operating systems, organize results using date-based structures, source code from specified directories, and perform file operations safely. It ensures consistency across projects while accommodating different requirements for various types of content.


org

CRAN status CRAN downloads

Overview

org is a framework for organizing R projects with a standardized structure. It helps manage the three main components of most analyses:

  • Code: Version-controlled analysis scripts
  • Results: Date-organized output files
  • Data: Securely stored input data

Each component has specific requirements and best practices that org helps enforce. The package provides tools to:

  • Set up and manage project directories
  • Handle file paths consistently across operating systems
  • Manage results with date-based organization
  • Source code from specified directories
  • Create and manage Quarto documents
  • Handle file operations safely

Installation from CRAN

install.packages("org")

Getting started

  1. Read the introduction vignette
  2. Run help(package="org") for detailed function documentation

Quick example

# Initialize a new project
org::initialize_project(
  env = .GlobalEnv,
  home = "/path/to/project",      # Contains Run.R and R/ folder
  results = "/path/to/results",   # Where results will be stored
  data_raw = "/path/to/data"      # Raw data location
)

# Access project settings
org::project$results_today  # Today's results folder
org::project$data_raw      # Raw data folder

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This package is licensed under the MIT License - see the LICENSE file for details.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("org")

2026.4.9 by Richard Aubrey White, 6 months ago


https://www.rwhite.no/org/, https://github.com/raubreywhite/org


Report a bug at https://github.com/raubreywhite/org/issues


Browse source code at https://github.com/cran/org


Authors: Richard Aubrey White [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports utils

Suggests testthat, knitr, rmarkdown, glue, pak


See at CRAN