calc_half_life(chem.name="Bisphenol A")
# \donttest{
calc_half_life(chem.name="Bisphenol A",species="Rat")
calc_half_life(chem.cas="80-05-7")
# Volatiles are outside the domain of default model:
try(calc_half_life(
chem.name="toluene"))
# We can turn off physchem checking:
calc_half_life(
chem.name="toluene",
physchem.exclude=FALSE)
# Or use an appropriate model for volatiles:
calc_half_life(
chem.name="toluene",
model="sumclearances")
# PFAS are outside the domain:
try(calc_half_life(
dtxsid="DTXSID8031865",
model="sumclearances"))
# Can turn off chemical class checking:
calc_half_life(
dtxsid="DTXSID8031865",
model="sumclearances",
class.exclude=FALSE,
suppress.messages=TRUE)
# For a metabolized compound, non-restrictive clearance should be faster:
h1 <- calc_half_life(
chem.name="toluene",
model="sumclearances",
suppress.messages=TRUE)
h2 <- calc_half_life(
chem.name="toluene",
model="sumclearances",
restrictive.clearance=FALSE,
suppress.messages=TRUE)
# Check that h2 < h1:
if (!(h2 < h1)) stop("h2 not less than h1")
# Change species:
calc_half_life(
dtxsid="DTXSID8031865",
species="rat",
model="sumclearances",
default.to.human=TRUE,
class.exclude=FALSE,
physchem.exclude=FALSE,
suppress.messages=TRUE)
# }
Run the code above in your browser using DataLab