← Back to all sparks
C

campsismod

INFRA · APIS
Velocity2.5

Generic Implementation of a PK/PD Model

The model layer under Campsis, renamed in step with it and increasingly JSON-addressable.

pharmacometricsmodel-objectsjson-interfaceapi-consolidationsibling-package
Current state
Campsismod holds the model object layer for the Campsis pharmacometric simulation suite: reading, editing and writing model definitions that Campsis then simulates. Its recent releases track a single programme, adding a JSON route into model objects and then renaming the whole API to snake_case in 1.4.0, a week before Campsis 1.9.0 did the same. Release notes are terse issue lists, so the reasoning behind each change has to be read from the sibling package.
Where it's heading
This package moves when Campsis needs it to move. The JSON constructor landed here in 1.3.0 and reached Campsis datasets a day later; parameter uncertainty generation was handed down from Campsis in that package's 1.6.0; and the snake_case migration started here before propagating up. That ordering makes Campsismod the place where suite-wide interface decisions are taken first, even though the visible payoff shows up in Campsis.
Prediction
Expect Campsismod to keep absorbing model-level responsibilities that Campsis currently handles, and to extend the JSON mapping to whatever parts of the model object it does not yet cover. The entries give no signal on a 2.0, and with the rename already spent there is little reason to expect one soon.

Recent moves

  1. 21d ago

    snake_case migration lands here first

    Renames the API to snake_case and refreshes the pkgdown site. The same migration reaches Campsis a week later in 1.9.0, where it arrives bundled with the RxODE removal and the new output-function architecture; here it is the rename alone, which is why this tag reads thinner than the change it starts.

    View source ↗
  2. 3mo ago

    Bundled model suite refreshed

    A single-item release updating the bundled model suite. No interface change and nothing that alters how existing models are read or simulated.

    View source ↗
  3. 5mo ago

    JSON argument added to the CampsisModel constructor

    Follows 1.3.0 by putting JSON directly into the CampsisModel constructor and reviewing the JSON-to-S4-slot mapping behind it. Campsis mirrors this in 1.8.2 the same day for datasets, scenarios and settings, one of several occasions where the two packages ship the same idea within hours.

    View source ↗
  4. 7mo ago

    JSON import for Campsis models

    The single change that opens the serialisation arc: models can be imported from JSON rather than constructed in R. Campsis datasets follow a day later, and by 1.9.0 the same treatment reaches scenarios, settings and study replication.

    View source ↗
  5. 1y ago

    replaceAll fixed for unrecognised statements

    A one-line correctness fix for replaceAll when it encounters statements it does not recognise. Narrow enough that only users hitting that specific case would notice.

    View source ↗
  6. 1y ago

    Performance tests skipped on CRAN

    Test-infrastructure housekeeping to keep performance tests off CRAN runners. No user-visible effect.

    View source ↗