nlmixr2 / rxode2

rxode2
https://nlmixr2.github.io/rxode2/
GNU General Public License v3.0
28 stars 7 forks source link

Improper arguments for piped et #722

Open mattfidler opened 7 months ago

mattfidler commented 7 months ago
rxode2et::et(amt=0, cmt=central, id=c(1:10)) |>
   rxode2et::et(c(0,1), cmt=Cc)
#> Error: improper arguments to 'et'

Created on 2024-02-18 with reprex v2.1.0

Originally posted by @mattfidler in https://github.com/nlmixr2/rxode2/issues/657#issuecomment-1951554752

mattfidler commented 7 months ago

Note that this works:

   rxode2et::et(c(0,1), cmt=Cc)
#> ── EventTable with 2 records ──
#> 0 dosing records (see x$get.dosing(); add with add.dosing or et)
#> 2 observation times (see x$get.sampling(); add with add.sampling or et)
#> ── First part of x: ──
#> # A tibble: 2 × 3
#>    time cmt   evid         
#>   <dbl> <chr> <evid>       
#> 1     0 Cc    0:Observation
#> 2     1 Cc    0:Observation

Created on 2024-02-18 with reprex v2.1.0