nlmixr2 / rxode2et

https://nlmixr2.github.io/rxode2et/
1 stars 1 forks source link

et: when cmt is a variable, cmt is set to the variable name instead of the variable value. #23

Closed iamstein closed 10 months ago

iamstein commented 1 year ago

In the code below, the dosing tibble should have cmt = "Ad" rather than "cmti"

> cmt = "Ad"
> dosing = et(time = 0, amt = dose_nmol, cmt = cmti)
> dosing
── EventTable with 1 records ──
1 dosing records (see dosing$get.dosing(); add with add.dosing or et)
0 observation times (see dosing$get.sampling(); add with add.sampling or et)
── First part of dosing: ──
# A tibble: 1 × 4
   time cmt     amt evid        
  <dbl> <chr> <dbl> <evid>      
1     0 cmti   38.6 1:Dose (Add)
mattfidler commented 10 months ago

Thanks @iamstein

I am forced to update the nlmixr2 ecosystem by CRAN so I finally got to this 😄

Thanks for pointing this out.