Skip to content

Commit

Permalink
Some more fixes for the tests and pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed May 20, 2022
1 parent 6584c52 commit f76c702
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ reference:
contents:
- '`traceplot`'
- '`vpcPlot`'
- title: ggplot2 functions
contents:
- '`stat_amt`'
- '`stat_cens`'
- title: Internal functions
contents:
- '`plot.nlmixr2FitData`'
- '`plot.nlmixr2AugPred`'
2 changes: 1 addition & 1 deletion tests/testthat/test-plots-cens.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test_that("plot censoring", {
control=list(print=0),
table=nlmixr2est::tableControl(cwres=TRUE, npde=TRUE))

expect_error(nlmixr2est::augPred(fit), NA)
apo <- nlmixr2est::augPred(fit)
expect_error(plot(apo), NA)
expect_error(vpcPlot(fit, stratify="DOSE"), NA)
expect_error(vpcPlot(fit, pred_corr=TRUE, stratify="DOSE", log_y=TRUE), NA)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-plots-multiple-endpoints.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ test_that("multiple endpoint plots", {

apo <- nlmixr2est::augPred(fit)
expect_error(plot(apo), NA)
expect_error(vpcPlot(fit))
expect_error(vpcPlot(fit, pred_corr=TRUE))
expect_error(vpcPlot(fit), NA)
expect_error(vpcPlot(fit, pred_corr=TRUE), NA)

expect_error(plot(fit), NA)

Expand Down

0 comments on commit f76c702

Please sign in to comment.