Skip to content

Commit

Permalink
missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed May 15, 2024
1 parent 1cce483 commit a0a2cd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-shinytest2-tm_misssing_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ app_driver_tm_missing_data <- function() {
IRIS = iris
set.seed(123)

add_nas <- function(x) {
x[sample(seq_along(x), floor(length(x) * runif(1, .05, .17)))] <- NA
x
}

iris[] <- lapply(iris, add_nas)
mtcars[] <- lapply(mtcars, add_nas)
mtcars[["cyl"]] <- as.factor(mtcars[["cyl"]])
Expand Down

0 comments on commit a0a2cd7

Please sign in to comment.