Generic PK/PD Simulation Platform Campsis
Overview
A generic, easy-to-use and intuitive pharmacokinetic/pharmacodynamic (PK/PD) simulation platform based on the R packages 'rxode2' and 'mrgsolve'. Campsis provides an abstraction layer over the underlying processes of defining a PK/PD model, assembling a custom dataset and running a simulation. The package has a strong dependency on the R package 'campsismod', which allows models to be read from and written to files, including through a JSON-based interface, and to be adapted further on the fly in the R environment. In addition, 'campsis' allows users to assemble datasets in an intuitive manner, including via a JSON-based interface to import Campsis datasets defined using formal JSON schemas distributed with the package. Once the dataset is ready, the package prepares the simulation, calls 'rxode2' or 'mrgsolve' (at the user's choice), and returns the results for the given model, dataset and desired simulation settings. The package itself is licensed under the GPL (>= 3); the JSON schema files shipped in inst/extdata are licensed separately under the Creative Commons Attribution 4.0 International (CC BY 4.0).
- Migrate package to campsisverse organisation #230
- Fix infusion duration unit conversion based on dataset configuration #228
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-30
- WARNING10 OK, 3 WARNING2026-09-16
- OK13 OK2026-08-12
- ERROR9 OK, 2 NOTE, 2 ERROR2026-08-04
- NOTE12 OK, 1 NOTE2026-07-11
Show 7 earlier changesHide 7 earlier changes
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-07
- WARNING12 OK, 1 WARNING2026-05-06
- OK13 OK2026-05-02
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 263 (85 internal)
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Get started with Campsis HTML
- Bioavailability HTML
- Complex PK/PD models from literature HTML
- Covariates HTML
- Create your dataset HTML
- Infusions HTML
- Initial conditions HTML
- Inter-occasion variability HTML
- Interruption events HTML
- Lag time HTML
Show 8 moreHide 8 vignettes
- PK/PD model library HTML
- Progress bar HTML
- Replicate your study HTML
- Run your simulation in parallel HTML
- Scenarios HTML
- Simple dose adaptations HTML
- Time-varying covariates HTML
- Variability levels HTML
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 10
- 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
- github.com/calvagone/campsis · last recorded on 2026-10-19
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/campsisverse/campsis on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows
Show all practicesHide 2 practices
Dependencies
Installing campsis adds 54 packages (26 with compiled code, 40 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.9.3Latest2026-10-19 · current release · diff ↗ ·
removed 2 exports
preserve_column_levels, remove_column_levels - 1.9.22026-09-24 · diff ↗
- 1.9.1
- RR 4.6.0 released · 2026-04-24
- 1.9.02026-03-19 · diff ↗ ·
removed 31 exports
VPC, applyAction, applyScenario, dosingOnly, generateIIV, generateIIV_, getAvailableTimeUnits, getCampsisOption, getCampsisOptions, getCovariates, getEventCovariates, getFixedCovariates, getIOVs, getOccasions, getSeedForDatasetExport, getSeedForIteration, getSeedForParametersSampling, getSplittingConfiguration, getTimeVaryingCovariates, getTimes, obsOnly, onCI, onCran, repeatSchedule, retrieveParameterValue, standardiseTime, unwrapTreatment, updateADDL, updateAmount, updateII and 1 moreadded 44 exports
DefaultOutfun, NCATableOutfun, Outfuns, PIOutfun, StatsOutfun, apply_action, apply_outfun, apply_scenario, compute_pi, compute_stats, convert_time, dosing_only, generate_iiv, generate_iiv_, get_available_time_units, get_campsis_option, get_campsis_options, get_covariates, get_event_covariates, get_fixed_covariates, get_iovs, get_occasions, get_splitting_configuration, get_time_varying_covariates, get_times, obs_only, on_ci, on_cran, repeat_schedule, retrieve_parameter_value and 14 more - 1.8.22026-03-19 · diff ↗
- 1.8.12026-01-28 · diff ↗ ·
added 8 exports
DefaultSettings, DosingSchedule, ReplaceAction, TimeSequence, TimeVector, applyAction, getCampsisOption, getCampsisOptions - RR 4.5.0 released · 2025-04-11
- 1.7.02025-04-04 · diff ↗ ·
added 8 exports
CyclicSchedule, RepeatAtSchedule, repeatSchedule, unwrapTreatment, updateADDL, updateAmount, updateII, updateRepeat - 1.6.02025-02-09 · diff ↗
- 1.5.5
- 1.5.42024-08-30 · diff ↗
- 1.5.3
- RR 4.4.0 released · 2024-04-24
- 1.5.22024-04-12 · diff ↗ ·
added 10 exports
convertTime, days, getAvailableTimeUnits, hours, minutes, months, seconds, standardiseTime, weeks, years - 1.5.1
Show 15 earlier eventsHide 15 earlier events
- 1.5.0
- 1.4.12023-04-24 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-04-13
- 1.4.02023-04-13 · diff ↗ ·
added 11 exports
Declare, Hardware, NOCB, Settings, Solver, campsis_handler, generateIIV_, getSplittingConfiguration, scatterPlot, setupPlanDefault, setupPlanSequential - archivedRemoved from CRAN2023-04-01check problems were not corrected in time
- unarchivedReturned to CRAN2022-06-01
- 1.3.02022-06-01 · diff ↗
- archivedRemoved from CRAN2022-05-24check problems persisted after reinstatement
- unarchivedReturned to CRAN2022-05-03
- 1.2.1
- archivedRemoved from CRAN2022-04-22check problems were not corrected in time
- RR 4.2.0 released · 2022-04-22
- 1.2.02022-02-16
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-16
- Total releases
- 19 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 60 KB / 1 file
- Download size
- 532 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("campsis")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.