From f830d508d4ed928806460b03768331ff7a3ce9b9 Mon Sep 17 00:00:00 2001 From: "alex.hill@gmail.com" Date: Thu, 26 Sep 2024 16:41:37 +0100 Subject: [PATCH] fix package check --- R/router.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/router.R b/R/router.R index 32369b2..55be7d7 100644 --- a/R/router.R +++ b/R/router.R @@ -66,7 +66,7 @@ setup_docs <- function(pr) { pr$setApiSpec(api) # this is a bit annoying, but setDocs fails if the package isn't # already loaded - library(redoc) + requireNamespace("redoc") pr$setDocs("redoc") pr$mount("/schema", plumber::PlumberStatic$new( file.path(system.file("schema", package = "serovizr"))))