R Under development (unstable) (2025-04-29 r88182 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # R CMD BATCH --no-timing --no-restore --no-save caco2_test.R caco2_test.Rout > > # Get rid of anything in the workspace: > rm(list=ls()) > > library(httk) > > p <- parameterize_pbtk(chem.cas="80-05-7") Warning messages: 1: In get_clint(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Clint is provided as a distribution. 2: In apply_clint_adjustment(Clint.point, Fu_hep = Fu_hep, suppress.messages = suppress.messages) : Clint adjusted for in vitro partitioning (Kilford, 2008), see calc_hep_fu. 3: In get_fup(dtxsid = dtxsid, chem.name = chem.name, chem.cas = chem.cas, : Fraction unbound is provided as a distribution. 4: In apply_fup_adjustment(fup.point, fup.correction = fup.adjustment, : Fup adjusted for in vivo lipid partitioning (Pearce, 2017), see calc_fup_correction. 5: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 6: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. > print(p[["MW"]]) [1] 228.3 > print(p[["BW"]]) [1] 70 > print(p[["Fabsgut"]]) [1] 0.6441 > > # Reduce the number of samples used by Monte Carlo to decrease runtime for > # CRAN checks (never use predictions with only ten draws): > NSAMP <- 10 > > set.seed(1234) > # Let's make sure that the monte carlo Css is also lower when some chemical > # is not absorbed: > Css1.caco <- calc_mc_css(chem.cas="15972-60-8", + model="3compartment", + samples=NSAMP) Human plasma concentration returned in mg/L units for 0.95 quantile. Warning messages: 1: In calc_ma(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Membrane affintity (MA) predicted with method of Yun and Edginton (2013), see calc_ma. 2: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 3: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. 4: In (function (chem.name = NULL, chem.cas = NULL, dtxsid = NULL, : calc_analytic_css deprecated argument daily.dose replaced with new argument dose, value given assigned to dose > # The monte carlo Css should be higher with keepit100-TRUE > set.seed(1234) > Css1.100 <- calc_mc_css(chem.cas="15972-60-8", + model="3compartment", + samples=NSAMP, + Caco2.options=list(keepit100=TRUE)) Human plasma concentration returned in mg/L units for 0.95 quantile. Warning messages: 1: In calc_ma(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Membrane affintity (MA) predicted with method of Yun and Edginton (2013), see calc_ma. 2: In available_rblood2plasma(chem.cas = chem.cas, species = species, : Human in vivo measured Rblood2plasma used. 3: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Default value of 1.6 used for Caco2 permeability. 4: In (function (chem.name = NULL, chem.cas = NULL, dtxsid = NULL, : calc_analytic_css deprecated argument daily.dose replaced with new argument dose, value given assigned to dose > Css1.caco < Css1.100 95% TRUE > > set.seed(1234) > Css2.caco <- calc_mc_css(dtxsid="DTXSID6034392", + samples=NSAMP, + which.quantile=0.5) Human plasma concentration returned in mg/L units for 0.5 quantile. Warning messages: 1: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Clint is provided as a distribution. 2: In (function (chem.name = NULL, chem.cas = NULL, dtxsid = NULL, : calc_analytic_css deprecated argument daily.dose replaced with new argument dose, value given assigned to dose > set.seed(1234) > Css2.100 <- calc_mc_css(dtxsid="DTXSID6034392", + samples=NSAMP, + Caco2.options = list(keepit100=TRUE), + which.quantile=0.5) Human plasma concentration returned in mg/L units for 0.5 quantile. Warning messages: 1: In get_caco2(chem.cas = chem.cas, chem.name = chem.name, dtxsid = dtxsid, : Clint is provided as a distribution. 2: In (function (chem.name = NULL, chem.cas = NULL, dtxsid = NULL, : calc_analytic_css deprecated argument daily.dose replaced with new argument dose, value given assigned to dose > Css2.caco < Css2.100 50% TRUE > > quit("no") > proc.time() user system elapsed 10.10 0.35 10.45