Skip to content

Commit

Permalink
bump kernlab to Suggests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Apr 26, 2022
1 parent 8784bf5 commit 4843385
Show file tree
Hide file tree
Showing 24 changed files with 57 additions and 51 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ Imports:
glmnet,
cli,
stats,
foreach,
kernlab
foreach
Suggests:
testthat (>= 3.0.0),
covr,
Expand All @@ -53,6 +52,7 @@ Suggests:
modeldata,
rmarkdown,
nnet,
kernlab,
h2o,
SuperLearner
Config/Needs/website:
Expand Down
2 changes: 1 addition & 1 deletion R/add_candidates.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#'
#' @template note_example_data
#'
#' @examples
#' @examplesIf rlang::is_installed("kernlab")
#' \donttest{
#' # see the "Example Data" section above for
#' # clarification on the objects used in these examples!
Expand Down
2 changes: 1 addition & 1 deletion R/blend_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#'
#' @template note_example_data
#'
#' @examples
#' @examplesIf rlang::is_installed("kernlab")
#' \donttest{
#' # see the "Example Data" section above for
#' # clarification on the objects used in these examples!
Expand Down
9 changes: 1 addition & 8 deletions R/butcher.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ butcher::butcher
#'
#' @return Axed model_stack object.
#'
#'
#' @examples
#' # feel free to ignore the following lines—they allow {stacks} to supply
#' # examples without requiring the model-supplying package to be installed.
#' if (requireNamespace("ranger", quietly = TRUE)) {
#' if (requireNamespace("kernlab", quietly = TRUE)) {
#' @examplesIf rlang::is_installed("ranger") & rlang::is_installed("kernlab")
#'
#' \donttest{
#'
Expand All @@ -43,8 +38,6 @@ butcher::butcher
#' format(object.size(st))
#' format(object.size(butchered_st))
#'
#' }
#' }
#' }
#' @name axe_model_stack
NULL
Expand Down
2 changes: 1 addition & 1 deletion R/collect_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' @template note_example_data
#'
#' @examples
#' @examplesIf rlang::is_installed("kernlab")
#' \donttest{
#' # see the "Example Data" section above for
#' # clarification on the objects used in these examples!
Expand Down
9 changes: 2 additions & 7 deletions R/fit_members.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
#'
#' @template note_example_data
#'
#' @examples
#' # feel free to ignore the following lines—they allow {stacks} to supply
#' # examples without requiring the model-supplying package to be installed.
#' if (requireNamespace("ranger", quietly = TRUE)) {
#' if (requireNamespace("kernlab", quietly = TRUE)) {
#' @examplesIf rlang::is_installed("ranger") & rlang::is_installed("kernlab")
#'
#' \donttest{
#'
Expand Down Expand Up @@ -66,8 +62,7 @@
#' fit_members()
#'
#' log_st
#' }
#' }
#'
#' }
#'
#' @family core verbs
Expand Down
10 changes: 2 additions & 8 deletions R/predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
#'
#' @template note_example_data
#'
#' @examples
#' # feel free to ignore the following lines—they allow {stacks} to supply
#' # examples without requiring the model-supplying package to be installed.
#' if (requireNamespace("ranger", quietly = TRUE)) {
#' if (requireNamespace("kernlab", quietly = TRUE)) {
#'
#' @examplesIf rlang::is_installed("ranger") & rlang::is_installed("kernlab")
#' \donttest{
#'
#' # see the "Example Data" section above for
Expand Down Expand Up @@ -68,8 +63,7 @@
#' type = "prob",
#' members = TRUE
#' )
#' }
#' }
#'
#' }
#'
#' @importFrom stats predict
Expand Down
3 changes: 2 additions & 1 deletion man/add_candidates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions man/axe_model_stack.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/blend_predictions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/collect_parameters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions man/fit_members.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions man/predict.model_stack.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tests/testthat/test_add_candidates.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_blend_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_butcher.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_collect_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_cran.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_expressions.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_fit_members.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_print.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ library(modeldata)
skip_if_not_installed("ranger")
library(ranger)

skip_if_not_installed("kernlab")
library(kernlab)

skip_if_not_installed("nnet")
library(nnet)

Expand Down

0 comments on commit 4843385

Please sign in to comment.