Package: nlmixr2plot Check: tests New result: ERROR Running ‘testthat.R’ [61s/59s] 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 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 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 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 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 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 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 Package: xpose Check: tests New result: ERROR Running ‘testthat.R’ [37s/37s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(xpose) Loading required package: ggplot2 Attaching package: 'xpose' The following object is masked from 'package:stats': filter > > test_check("xpose") Saving _problems/test-vpc-45.R [ FAIL 1 | WARN 0 | SKIP 7 | PASS 491 ] ══ Skipped tests (7) ═══════════════════════════════════════════════════════════ • On CRAN (7): 'test-read_nm_files.R:54:3', 'test-read_nm_tables.R:61:3', 'test-read_nm_tables.R:71:3', 'test-vpc.R:50:3', 'test-xpose_data.R:31:3', 'test-xpose_data.R:47:3', 'test-xpose_save.R:14:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-vpc.R:45:3'): vpc_data works properly with xpdb tables ─────── Expected `xpdb_vpc_test$special` to be equivalent to `ctrl_special$special`. Component "data": Component 1: Length mismatch: comparison on first 20 components Component "data": Component 1: Component 7: target is numeric, current is character Component "data": Component 1: Component 8: target is NULL, current is numeric Component "data": Component 1: Component 11: target is character, current is list Component "data": Component 1: Component 12: Length mismatch: comparison on first 1 components Component "data": Component 1: Component 12: Component 1: target is character, current is logical Component "data": Component 1: Component 14: target is logical, current is character Component "data": Component 1: Component 15: target is character, current is NULL Component "data": Component 1: Component 16: target is NULL, current is numeric ... [ FAIL 1 | WARN 0 | SKIP 7 | PASS 491 ] Error: ! Test failures. Execution halted