tensfeldt / openNCA

openNCA computation engine is an R package that provides for generation of pharmacokinetic parameter estimates using non-compartmental (NCA) pharmacokinetic analysis methods.
MIT License
27 stars 5 forks source link

2020-08-27 tc105 & tc1572 M4SS "aetau: value 't' cannot be used to subset 'time'" execution error introduced in b1c7cff #256

Open jhhughes256 opened 4 years ago

jhhughes256 commented 4 years ago

Error

When testing tc105 and tc1572 M4SS (LINLOG) an execution error occurs for actual time when using the original data or when changing all concentrations to zero. This issue does not occur when all concentrations are set to NA.

Error in value[[3L]](cond) : 
Error in aetau(aet = tmp_amt, time = na.omit(tmp_df[, map_data$ENDTIME]), : Error in aetau: value 't' cannot be used to subset 'time' vector
For SDEID 661083556

This error message is similar to #182 , but impacts a far smaller range of testcases.

Testing historic commits, this has existed from b1c7cff (CE-v1) through to the latest commit cca452d (CE-v3), with the last commit where this error did not occur being 5fd742c (Note: I did not test every commit between the first occurrence and latest occurrence).