From 52412a9cafed63c483fcebe1204952f55c9dba3d Mon Sep 17 00:00:00 2001 From: Zachary Waller Date: Thu, 15 Jul 2021 14:21:31 +0100 Subject: [PATCH] Fixed namespace issue due to roxygenise call --- R/docstring.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/docstring.R b/R/docstring.R index 640f192..af7d62d 100644 --- a/R/docstring.R +++ b/R/docstring.R @@ -139,7 +139,7 @@ docstring <- function(fun, fun_name = as.character(substitute(fun)), # roxygen uses cat to display the "Writing your_function.Rd" messages so # I figured capturing the output would be 'safer' than using sink and # diverting things. Oh well. - output <- capture.output(suppressWarnings(suppressMessages(roxygenize(package_dir, "rd")))) + output <- capture.output(suppressWarnings(suppressMessages(roxygenize(package_dir, "rd", load = "source")))) generated_Rd_file <- file.path(package_dir, "man", paste0(fun_name, ".Rd"))