View source: R/install_suggests.R
| gof_install_suggests | R Documentation |
run.all.gof()The slow tests in run.all.gof rely on optional packages that
live in Suggests (givitiR and callr for the GiViTI
calibration test, mgcv for the GAM tests, randomForest and
dcov for the adaptive BAGofT test (BAGofT itself is used only on
request), and ResourceSelection for the Lai-Liu test). Per CRAN policy the
package never installs them on its own; this helper installs the missing ones
for you, asking first.
gof_install_suggests(pkgs = NULL, ask = interactive(), update = FALSE)
pkgs |
Optional character vector of package names to consider. Defaults to the full optional set used by the battery. |
ask |
Logical; when |
update |
Logical; when |
Invisibly, the character vector of packages that were installed or updated (empty if nothing was needed).
run.all.gof
## Not run:
# install whatever optional packages are missing, after confirming:
gof_install_suggests()
# also update any that are out of date:
gof_install_suggests(update = TRUE)
# just the GiViTI dependencies, no prompt:
gof_install_suggests(c("givitiR", "callr"), ask = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.