
SOP RPACT CRAN Release General
© RPACT GmbH, Germany
SOP-RPACT-005
Version 1.0.0
rpact_sop_005_cran_release_general.Rmd
RPACT GmbH
Am Rodenkathen 11
23611 Sereetz
Germany
www.rpact.com
Copyright © 2025 RPACT GmbH. All rights reserved.
Standard Operating Procedure for The Release of R Packages Developed by RPACT to CRAN
This Standard Operating Procedure (SOP) describes the required steps
to prepare, validate, and release any R package developed by RPACT to
the Comprehensive R Archive Network (CRAN).
It applies to all R packages maintained by RPACT, hereafter referred to
as
The purpose of this SOP is to ensure high quality, reproducibility, regulatory suitability, and compliance with CRAN submission guidelines.
| SOP-ID | SOP-RPACT-005 |
| Title | SOP RPACT CRAN Release General |
| Description | Standard operating procedure for releasing a new R package version developed by RPACT with publication on CRAN |
| Author | Friedrich Pahlke |
| Creation date | 2025-11-21 |
| Version | 1.0.7 |
| Date of modification | 2025-11-21 |
Preconditions
Before initiating the CRAN release process, the following preconditions must be met:
Check open GitHub issues
All known bugs and critical issues reported onhttps://github.com/rpact-com/<package-name>/issues
must be resolved and closed.Check CRAN package check results (if applicable)
Ifalready exists on CRAN, ensure all results show
OK or NOTE:https://cran.r-project.org/web/checks/check_results_<package-name>.html.Overall package check time
R CMD checkmust complete in under 10 minutes.Test coverage
Test coverage must be > 80%.
The Codecov page for the package should be checked, if applicable:https://app.codecov.io/gh/rpact-com/<package-name>/?branch=main.
General Preparation Steps Before Release
Ensure Access to Unit Test Resources (If Needed)
If the package requires external credentials, test data, or configuration files used during unit testing, verify that:
- All required files are available
- All required credentials are present in the testing environment
Ensure All Unit Tests Are Uploaded (If Applicable)
If unit tests or test data are stored externally (e.g., FTP, S3,
private server), ensure that the resources for the current version<current-version>
are available and correct.
Calculate and Check Test Coverage
Generate a coverage report and ensure the threshold is met:
covr::package_coverage()Run Package-Specific Internal Validation Checks
If
Example:
Recreate and Check All Vignettes
Ensure the documentation builds correctly:
- Open the Quarto project (if available)
- Click: Build → Render Website
Push Source Code to GitHub and Review CI/CD Results
- Push the latest changes to the development branch.
- Create a pull request.
- Verify that all GitHub Actions pipelines in
https://github.com/rpact-com/<package-name>/actions
pass successfully. - Merge into main only when the pipeline completes without issues.
Post-Release Activities (One Week After Release)
Take a Screenshot of CRAN Check Results
After one week, visit:
https://cran.r-project.org/web/checks/check_results_<package-name>.html
Create a screenshot of all platform results.
Save Screenshot and Update Validation Documentation
Save the screenshot under:
<validation-results-folder>/CRAN-Package-Check-Results.png
Update the validation documentation for all clients.
Confirmation of Execution and Review
By signing below, I confirm that all steps outlined in this SOP have been fully executed and reviewed. I certify that the procedures were followed as described, and that the results have been verified for accuracy and compliance with the relevant standards.
| Name | Signature | Date |
|---|---|---|