Running 'testthat.R' [172s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(nlmixr2plot)
  > 
  > test_check("nlmixr2plot")
  Saving _problems/test-plots-51.R
  Saving _problems/test-plots-52.R
  Saving _problems/test-plots-53.R
  Saving _problems/test-plots-54.R
  Saving _problems/test-plots-57.R
  Saving _problems/test-plots-58.R
  [ FAIL 6 | WARN 19 | SKIP 2 | PASS 31 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-plots-cens.R:2:3', 'test-plots-multiple-endpoints.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-plots.R:51:3'): test plots with vdiffr ───────────────────────
  Expected `vpcPlot(fit, pred_corr = TRUE)` not to throw any errors.
  Actually got a <rlang_error> with message:
    i In argument: `q5 = quantile(dv, pi[1])`.
    i In group 1: `strat = 1`, `sim = 1`, `bin = 1`.
    Caused by error in `quantile.default()`:
    ! missing values and NaN's not allowed if 'na.rm' is FALSE
  Backtrace:
       ▆
    1. ├─testthat::expect_error(vpcPlot(fit, pred_corr = TRUE), NA) at test-plots.R:51:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─nlmixr2plot::vpcPlot(fit, pred_corr = TRUE)
    8. │ └─vpc::vpc_vpc(...)
    9. │   └─vpc:::calc_vpc_continuous(...)
   10. │     └─sim %>% dplyr::group_by(strat, sim, bin) %>% ...
   11. ├─dplyr::summarise(...)
   12. ├─dplyr:::summarise.grouped_df(...)
   13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─dplyr:::map(quosures, summarise_eval_one, mask = mask)
   16. │     └─base::lapply(.x, .f, ...)
   17. │       └─dplyr (local) FUN(X[[i]], ...)
   18. │         └─mask$eval_all_summarise(quo)
   19. │           └─dplyr (local) eval()
   20. ├─stats::quantile(dv, pi[1])
   21. ├─stats:::quantile.default(dv, pi[1])
   22. │ └─base::stop("missing values and NaN's not allowed if 'na.rm' is FALSE")
   23. └─base::.handleSimpleError(...)
   24.   └─dplyr (local) h(simpleError(msg, call))
   25.     └─dplyr (local) handler(cnd)
   26.       └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  ── Failure ('test-plots.R:52:3'): test plots with vdiffr ───────────────────────
  Expected `vpcPlot(fitSim, pred_corr = TRUE)` not to throw any errors.
  Actually got a <rlang_error> with message:
    i In argument: `q5 = quantile(dv, pi[1])`.
    i In group 1: `strat = 1`, `sim = 1`, `bin = 1`.
    Caused by error in `quantile.default()`:
    ! missing values and NaN's not allowed if 'na.rm' is FALSE
  Backtrace:
       ▆
    1. ├─testthat::expect_error(vpcPlot(fitSim, pred_corr = TRUE), NA) at test-plots.R:52:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─nlmixr2plot::vpcPlot(fitSim, pred_corr = TRUE)
    8. │ └─vpc::vpc_vpc(...)
    9. │   └─vpc:::calc_vpc_continuous(...)
   10. │     └─sim %>% dplyr::group_by(strat, sim, bin) %>% ...
   11. ├─dplyr::summarise(...)
   12. ├─dplyr:::summarise.grouped_df(...)
   13. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
   14. │   ├─base::withCallingHandlers(...)
   15. │   └─dplyr:::map(quosures, summarise_eval_one, mask = mask)
   16. │     └─base::lapply(.x, .f, ...)
   17. │       └─dplyr (local) FUN(X[[i]], ...)
   18. │         └─mask$eval_all_summarise(quo)
   19. │           └─dplyr (local) eval()
   20. ├─stats::quantile(dv, pi[1])
   21. ├─stats:::quantile.default(dv, pi[1])
   22. │ └─base::stop("missing values and NaN's not allowed if 'na.rm' is FALSE")
   23. └─base::.handleSimpleError(...)
   24.   └─dplyr (local) h(simpleError(msg, call))
   25.     └─dplyr (local) handler(cnd)
   26.       └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  ── Failure ('test-plots.R:53:3'): test plots with vdiffr ───────────────────────
  Expected `vpcPlotTad(fit, pred_corr = TRUE)` not to throw any errors.
  Actually got a <rlang_error> with message:
    i In argument: `q5 = quantile(dv, pi[1])`.
    i In group 1: `strat = 1`, `sim = 1`, `bin = 1`.
    Caused by error in `quantile.default()`:
    ! missing values and NaN's not allowed if 'na.rm' is FALSE
  Backtrace:
       ▆
    1. ├─testthat::expect_error(vpcPlotTad(fit, pred_corr = TRUE), NA) at test-plots.R:53:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─nlmixr2plot::vpcPlotTad(fit, pred_corr = TRUE)
    8. │ └─nlmixr2plot::vpcPlot(..., idv = idv)
    9. │   └─vpc::vpc_vpc(...)
   10. │     └─vpc:::calc_vpc_continuous(...)
   11. │       └─sim %>% dplyr::group_by(strat, sim, bin) %>% ...
   12. ├─dplyr::summarise(...)
   13. ├─dplyr:::summarise.grouped_df(...)
   14. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
   15. │   ├─base::withCallingHandlers(...)
   16. │   └─dplyr:::map(quosures, summarise_eval_one, mask = mask)
   17. │     └─base::lapply(.x, .f, ...)
   18. │       └─dplyr (local) FUN(X[[i]], ...)
   19. │         └─mask$eval_all_summarise(quo)
   20. │           └─dplyr (local) eval()
   21. ├─stats::quantile(dv, pi[1])
   22. ├─stats:::quantile.default(dv, pi[1])
   23. │ └─base::stop("missing values and NaN's not allowed if 'na.rm' is FALSE")
   24. └─base::.handleSimpleError(...)
   25.   └─dplyr (local) h(simpleError(msg, call))
   26.     └─dplyr (local) handler(cnd)
   27.       └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  ── Failure ('test-plots.R:54:3'): test plots with vdiffr ───────────────────────
  Expected `vpcPlotTad(fitSim, pred_corr = TRUE)` not to throw any errors.
  Actually got a <rlang_error> with message:
    i In argument: `q5 = quantile(dv, pi[1])`.
    i In group 1: `strat = 1`, `sim = 1`, `bin = 1`.
    Caused by error in `quantile.default()`:
    ! missing values and NaN's not allowed if 'na.rm' is FALSE
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-plots.R:54:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─nlmixr2plot::vpcPlotTad(fitSim, pred_corr = TRUE)
    8. │ └─nlmixr2plot::vpcPlot(..., idv = idv)
    9. │   └─vpc::vpc_vpc(...)
   10. │     └─vpc:::calc_vpc_continuous(...)
   11. │       └─sim %>% dplyr::group_by(strat, sim, bin) %>% ...
   12. ├─dplyr::summarise(...)
   13. ├─dplyr:::summarise.grouped_df(...)
   14. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
   15. │   ├─base::withCallingHandlers(...)
   16. │   └─dplyr:::map(quosures, summarise_eval_one, mask = mask)
   17. │     └─base::lapply(.x, .f, ...)
   18. │       └─dplyr (local) FUN(X[[i]], ...)
   19. │         └─mask$eval_all_summarise(quo)
   20. │           └─dplyr (local) eval()
   21. ├─stats::quantile(dv, pi[1])
   22. ├─stats:::quantile.default(dv, pi[1])
   23. │ └─base::stop("missing values and NaN's not allowed if 'na.rm' is FALSE")
   24. └─base::.handleSimpleError(...)
   25.   └─dplyr (local) h(simpleError(msg, call))
   26.     └─dplyr (local) handler(cnd)
   27.       └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  ── Failure ('test-plots.R:57:3'): test plots with vdiffr ───────────────────────
  Expected `vpcCensTad(fit)` not to throw any errors.
  Actually got a <notSubsettableError> with message:
    object of type 'closure' is not subsettable
  Backtrace:
       ▆
    1. ├─testthat::expect_error(vpcCensTad(fit), NA) at test-plots.R:57:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─nlmixr2plot::vpcCensTad(fit)
    8.   └─nlmixr2plot::vpcPlot(..., cens = cens, idv = idv)
    9.     └─vpc::vpc_cens(...)
   10.       └─vpc:::format_vpc_input_data(...)
   11.         └─vpc:::standardize_column(...)
  ── Failure ('test-plots.R:58:3'): test plots with vdiffr ───────────────────────
  Expected `vpcCensTad(fitSim, pred_corr = TRUE)` not to throw any errors.
  Actually got a <notSubsettableError> with message:
    object of type 'closure' is not subsettable
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-plots.R:58:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─nlmixr2plot::vpcCensTad(fitSim, pred_corr = TRUE)
    8.   └─nlmixr2plot::vpcPlot(..., cens = cens, idv = idv)
    9.     └─vpc::vpc_cens(...)
   10.       └─vpc:::format_vpc_input_data(...)
   11.         └─vpc:::standardize_column(...)
  
  [ FAIL 6 | WARN 19 | SKIP 2 | PASS 31 ]
  Error:
  ! Test failures.
  Execution halted