Generic Implementation of a PK/PD Model
Overview
A generic, easy-to-use and expandable implementation of a pharmacokinetic (PK) / pharmacodynamic (PD) model based on the S4 class system. This package allows the user to read and write pharmacometric models from and to files, including a JSON-based interface to import Campsis models defined using a formal JSON schema distributed with the package. Models can be adapted further on the fly in the R environment using an intuitive API to add, modify or delete equations, ordinary differential equations (ODEs), model parameters or compartment properties (such as infusion duration or rate, bioavailability and initial values). The package also provides export facilities for use with the simulation packages 'rxode2' and 'mrgsolve'. The package itself is licensed under the GPL (>= 3); the JSON schema file shipped in inst/extdata is licensed separately under the Creative Commons Attribution 4.0 International (CC BY 4.0). This package is designed and intended to be used with the package 'campsis', a PK/PD simulation platform built on top of 'rxode2' and 'mrgsolve'.
- Update maintainer's email address
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 237 (70 internal)
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 97%
- Return-value docs
- 96%
- Help pages citing references
- 0%
Downloads
Repository
Moved from calvagone/campsismod.
- PRs merged (all time)
- 97%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/calvagone/campsismod on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 2 practices
Dependencies
Installing campsismod adds 46 packages (24 with compiled code, 37 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, LaplacesDemon 2.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.4.2Latest
- 1.4.12026-09-27 · diff ↗
- 1.4.02026-07-30 · diff ↗ ·
removed 43 exports
addRSE, allNa, assertSingleCharacterString, autoDetectNONMEM, exportToJSON, extractLhs, extractRhs, extractTextBetweenBrackets, getCampsismodOption, getCampsismodOptions, getNONMEMName, getOmegaBlock, getOmegaIndexes, getPrefix, getRecordDelimiter, getRecordEquationNames, getRecordName, getVarCov, hasComment, hasExactMethod, hasOffDiagonalOmegas, isComment, isEmptyLine, isEquation, isIfStatement, isMatrixPositiveDefinite, isODE, isRecordDelimiter, isRxODE, isStrictRecordDelimiter and 13 moreadded 65 exports
add_rse, add_suffix, all_na, assert_single_character_string, auto_detect_nonmem, export_to_json, extract_lhs, extract_rhs, extract_text_between_brackets, fix_omega, get_by_index, get_by_name, get_campsismod_option, get_campsismod_options, get_compartment_index, get_name, get_name_in_model, get_names, get_nonmem_name, get_omega_block, get_omega_indexes, get_prefix, get_record_delimiter, get_record_equation_names, get_record_name, get_uncertainty, get_var_cov, has_comment, has_exact_method, has_off_diagonal_omegas and 35 more - 1.3.22026-05-07 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.3.1
- 1.3.02026-01-27 · diff ↗ ·
added 8 exports
JSONElement, exportToJSON, getCampsismodOption, getCampsismodOptions, jsonToParameter, loadFromJSON, mapJSONPropertiesToS4Slots, mapS4SlotsToJSONProperties - 1.2.32025-07-31 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.2.22025-03-28 · diff ↗
- 1.2.12025-03-17 · diff ↗
- 1.2.02025-02-07 · diff ↗ ·
added 14 exports
:=, AutoReplicationSettings, ManualReplicationSettings, OmegaBlock, OmegaBlocks, addRSE, getOmegaBlock, getOmegaIndexes, hasOffDiagonalOmegas, isMatrixPositiveDefinite, move, replicate, setMinMax, shiftOmegaIndexes - 1.1.2
- RR 4.4.0 released · 2024-04-24
- 1.1.12024-02-16 · diff ↗
- 1.1.0
Show 7 earlier eventsHide 7 earlier events
- RR 4.3.0 released · 2023-04-21
- 1.0.0
- 0.9.0
- 0.8.12022-05-24 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.8.02022-02-14
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-14
- Total releases
- 17 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 16 KB / 1 file
- Download size
- 738 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("campsismod")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.