Repository navigation
Minor improvements and bug fixes
-
{ospsuite}12.4.x now requires{rSharp}1.2.3 or older, which runs on .NET 8. Newer{rSharp}versions use .NET 10, with whichloadSimulation()and the other functions that read or write observed data in.pkmlfiles fail. Iflibrary(ospsuite)reports that a newer{rSharp}is installed, runpak::pak("Open-Systems-Pharmacology/rSharp@v1.2.3")or upgrade to{ospsuite}13. -
DataCombined$toDataFrame()now returns thenameandgroupcolumns as factors whose levels follow the order in which datasets (and groups) were added. As a result, plots built fromDataCombinedobjects (plotTimeProfile(),plotPredictedVsObserved(),plotResidualsVsCovariate(), etc.) now display legend entries in the orderDataSetandSimulationResultsobjects were added, rather than in alphabetical order. This also keepsname- andgroup-based legends consistent in observed-vs-predicted plots, where the two variables may otherwise diverge (#1968). -
plotResidualsVsCovariate(),plotResidualsAsHistogram(), andplotQuantileQuantilePlot()now include the data unit in the y-axis label forresidualScale = "linear"(e.g."residuals [µmol/l]"). For"log"and"ratio"scales the residuals are dimensionless and no unit is shown. An empty-string unit (dimensionless data such as fractions) no longer produces empty brackets[]in the label. -
ospsuitenow installs and loads even when its native libraries or the .NET runtime cannot be initialised (for example on build machines that lack a compatiblelibxml2or the .NET runtime), instead of failing at load time. The reason is reported when the package is attached and raised with an actionable message on the first call into the .NET API. Vignette code that requires the runtime is only executed when it is available. Together this allows the package to be built, checked, and resolved as a dependency in environments without a working runtime. -
library(ospsuite)no longer changes the globalggplot2theme and geom defaults: the{ospsuite.plots}-based plotting functions (plotTimeProfile(),plotPredictedVsObserved(),plotResidualsVsCovariate(),plotResidualsAsHistogram(),plotQuantileQuantilePlot()) now style each plot individually, and the styling of unrelated plots in the session is left untouched. As a consequence, the appearance of the deprecated{tlf}-based plotting functions may change slightly, since they no longer inherit the global theme (#1968). -
Added
isSupportedUnit()andvalidateIsNamedList()helper functions to the exported API. -
Added
dataCombinedAciclovir, a pre-builtDataCombinedobject combining simulated and observed aciclovir data, exported for use in examples, vignettes, and tests. -
loadDataSetsFromExcel()now treats an emptysheetsvector (character(0)) the same assheets = NULL, falling back to the configuration/all-sheets logic instead of overriding with no sheets. -
plotIndividualTimeProfile()andplotPopulationTimeProfile()now produce a stable legend entry order whenshowLegendPerDataset = TRUE; previously the order of the dataset-name legend entries could vary between sessions. -
convertSnapshot()is soft-deprecated in favor of two dedicated functions:loadProjectFromSnapshot()(snapshot.json-> project) andexportProjectToSnapshot()(project -> snapshot.json).convertSnapshot()still works but issues a deprecation warning and will be removed in a future release. Only PK-Sim projects (.pksim5) are supported for now; MoBi support is planned.