Load Both User-Global and Project-Specific R Profile Configurations
Overview
Use rprofile::load() inside a project '.Rprofile' file to ensure that the user-global '.Rprofile' is loaded correctly regardless of its location, and other common resources (in particular 'renv') are also set up correctly.
Bug fixes
- Prevent ‘rprofile’ from being included in the
renv.lockfile when a new ‘renv’ project is initialized. - Prevent breaking when no user R profile configuration exists.
Enhancements
- Clean up hook function after invoking ‘rprofile’ dev package loader.
- Disable the ‘renv’ auto-loader to prevent it from writing the autoload code, which conflicts with ‘rprofile’, to the project
.Rprofile. - Warn if no default packages are configured or if they are already all attached after the user profile is run.
- Allow users to customize how development packages are loaded (instead of
pkgload::load_all(export_all = FALSE)). - Ensure that ‘methods’ is ignored during lazy-loading of dev packages, since it is loaded too early.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 1
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Commits over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/klmr/rprofile on 2026-10-21.
The repository owner accepts GitHub Sponsors
Dependencies
Installing rprofile adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.4.0Latest
- 0.2.02023-08-09
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-09
- Total releases
- 2 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 8.7 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rprofile")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.