phuse-org / valtools

Validation framework for R packages used in clinical research and drug development.
https://phuse-org.github.io/valtools/
Other
51 stars 10 forks source link

dynamic referencing and NA values #153

Closed mariev closed 2 years ago

mariev commented 3 years ago

if NA values exist in input, dynamic reference will throw error

> dyn_ref1 <- vt_dynamic_referencer$new()
> dyn_ref1$scrape_references(mtcars)
> mtcars[1,1] <- NA
> dyn_ref2 <- vt_dynamic_referencer$new()
> dyn_ref2$scrape_references(mtcars)
Error in if (reference_location[[1]] != -1) { : 
  missing value where TRUE/FALSE needed