Skip to content

Commit c86392a

Browse files
committed
load the namespace
1 parent aec6791 commit c86392a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/aaa_models.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,7 @@ get_encoding <- function(model) {
10131013
#' cat(make_engine_list("linear_reg"))
10141014
find_engine_files <- function(mod, pkg = "parsnip") {
10151015

1016+
requireNamespace(pkg, quietly = TRUE)
10161017
# Get available topics
10171018
topic_names <- search_for_engine_docs(mod)
10181019
if (length(topic_names) == 0) {
@@ -1058,6 +1059,7 @@ get_default_engine <- function(mod, pkg= "parsnip") {
10581059
#' @export
10591060
#' @rdname doc-tools
10601061
make_seealso_list <- function(mod, pkg= "parsnip") {
1062+
requireNamespace(pkg, quietly = TRUE)
10611063
eng <- find_engine_files(mod, pkg)
10621064

10631065
res <-

0 commit comments

Comments
 (0)