Package: envsetup 0.3.0

Nicholas Masel

envsetup: Support the Setup of the R Environment for Clinical Trial Programming Workflows

The purpose of this package is to support the setup the R environment. The two main features are 'autos', to automatically source files and/or directories into your environment, and 'paths' to consistently set path objects across projects for input and output. Both are implemented using a configuration file to allow easy, custom configurations that can be used for multiple or all projects.

Authors:Nicholas Masel [aut, cre], Mike Stackhouse [aut], Aidan Ceney [aut], Johnson & Johnson Innovative Medicine [cph, fnd], Atorus Research, Inc. [cph]

envsetup_0.3.0.tar.gz
envsetup_0.3.0.zip(r-4.7)envsetup_0.3.0.zip(r-4.6)envsetup_0.3.0.zip(r-4.5)
envsetup_0.3.0.tgz(r-4.6-any)envsetup_0.3.0.tgz(r-4.5-any)
envsetup_0.3.0.tar.gz(r-4.7-any)envsetup_0.3.0.tar.gz(r-4.6-any)
envsetup_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
envsetup/json (API)

# Install 'envsetup' in R:
install.packages('envsetup', repos = c('https://pharmaverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/pharmaverse/envsetup/issues

On CRAN:

Conda:

7.85 score 12 stars 292 scripts 181 downloads 9 exports 33 dependencies

Last updated from:9b4fed1c69. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK151
source / vignettesOK220
linux-release-x86_64OK175
macos-release-arm64OK108
macos-oldrel-arm64OK99
windows-develOK95
windows-releaseOK79
windows-oldrelOK83
wasm-releaseOK113

Exports:build_from_configdetach_autosenvsetup_environmentget_pathinitread_pathrprofilevalidate_configwrite_path

Dependencies:askpassclicliprconfigcrayoncredentialscurldescenvnamesfsgertghgitcredsgluehttr2inijsonlitelifecyclemagrittropensslpurrrR6rappdirsrlangrprojrootrstudioapisysusethisvctrswhiskerwithryamlzip

Automatic Script Sourcing
Basic AUTOS Configuration | Working Example: Single Script Library | Loading and Using Auto-Sourced Functions | Multiple Script Libraries | Using Multiple Libraries | Understanding Function Conflicts and the Overwrite Parameter | Quick Example of Function Conflicts | Environment-Specific Auto-Sourcing | How Auto-Sourcing Works | Technical Details of Conflict Handling | Benefits of Auto-Sourcing | Common Use Cases | Project Utilities | Environment-Specific Functions | Team Libraries | Managing Function Conflicts with the Overwrite Parameter | Default Behavior: Overwrite = TRUE | Conservative Behavior: Overwrite = FALSE | Understanding Conflict Detection | Function Metadata Tracking | How Metadata Tracking Works | Accessing Function Metadata | Benefits of Metadata Tracking | 1. Debugging Function Issues | 2. Audit Trail | Metadata and the detach_autos() Function | Best Practices

Last update: 2025-07-31
Started: 2025-07-31

Basic Path Configuration
Understanding Path Configuration | Configuration Structure Levels | Level 1: Execution Environment | Level 2: Paths and Autos | Level 3: Specific Configuration | Working Example | Loading and Using the Configuration | Accessing Your Configured Paths | How It Works | Benefits | Next Steps

Last update: 2025-07-31
Started: 2025-07-31

Dynamic Path Management
Advanced Path Resolution | The Problem: Moving Data | Solution: Multiple Path Locations | Working Example Setup | Understanding the Configuration | Using read_path() for Smart File Location | Path Search Order | Controlling Search Order with envsetup_environ | Environment-Specific Path Resolution | Production Path Resolution | Practical Usage Pattern | Benefits of Dynamic Paths | Common Patterns | Development-First Search | Production-Only Search | Next Steps

Last update: 2025-07-31
Started: 2025-07-31

Managing Multiple Environments
Multiple Environment Configuration | The Challenge | Environment-Specific Configuration | Working Example | Loading Different Environments | Default Environment | QA Environment | Production Environment | Configuration Inheritance | Environment Selection Strategies | 1. Environment Variable | 2. Programmatic Selection | Best Practices | Next Steps

Last update: 2025-07-31
Started: 2025-07-31

Tips
1: Safely set autos

Last update: 2025-05-09
Started: 2025-05-09