Skip to content

sandrinecharles/rPBK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rPBK

An R package for the inference of physiologically-based toxicokinetics model

Introduction

Fit and simulate any kind of physiologically-based kinetic ('PBK') models whatever the number of compartments. Moreover, it allows to account for any link between pairs of compartments, as well as any link of each of the compartments with the external medium. Such generic PBK models have today applications in pharmacology (PBPK models) to describe drug effects, in toxicology and ecotoxicology (PBTK models) to describe chemical substance effects. In case of exposure to a parent compound (drug or chemical) the 'rPBK' package allows to consider metabolites, whatever their number and their phase (I, II, ...). Last but not least, package 'rPBK' can also be used for dynamic flux balance analysis (dFBA) to deal with metabolic networks.

Companion paper with details

Charles S, Gestin O, Bruset J, Lamonica D, Baudrot V, Chaumot A, et al. Generic Solving of Physiologically-based Kinetic Models in Sup- port of Next Generation Risk Assessment Due to Chemicals. Journal of Exploratory Research in Pharmacology. 2022, 00(00): 00–00. http://dx.doi.org/10.14218/JERP.2022.00043.

Development

Package skeleton

library("rstantools")
rstan_create_package(path = 'rPBK')

Dev info

Rstudio

Before 'Documentation' and 'Clear and Rebuild' and within 'Configure Build Tools...' untick 'use devtools package function if available'. Keep 'Generate Configuration with Roxygen'

little hack

  • to load all internal function of a package during dev: devtools::load_all()

A lighter package build

To make the package lighter, it is recommended to remove the vignettes: see file .Rbuildignore

Error to recompile during package dev

Sometimes, there is an Error to recompile during development after change of .stan files. A solution is to remove the rPBK folder in R repository of the win-library (see the path written in the error message).

An other solution is to build the package from the terminal using R CMD -preclean INSTALL rPBK from parent directory of rPBK.

Dev tools

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published