From a604ec457d9ce2e55202cc26fb79eb8cc6120de1 Mon Sep 17 00:00:00 2001 From: Markus Date: Tue, 12 Dec 2023 13:27:18 +0100 Subject: [PATCH 1/2] Declare necessary imports --- NAMESPACE | 5 +++++ R/PM_report.R | 9 ++++++++- man/PM_report.Rd | 7 ++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index e183efd8..68cf2775 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -135,7 +135,12 @@ export(sub_plot) export(update_gfortran) export(zBMI) import(dplyr) +import(htmltools) +import(knitr) +import(patchwork) +import(rmarkdown) import(tidyr) +importFrom(DT,datatable) importFrom(R6,R6Class) importFrom(dplyr,.data) importFrom(dplyr,across) diff --git a/R/PM_report.R b/R/PM_report.R index 5948de50..5743b995 100644 --- a/R/PM_report.R +++ b/R/PM_report.R @@ -15,7 +15,14 @@ #' in \code{\link{NPrun}}. #' @return Generates an HTML-report in the current working directory. #' @author Markus Hovd and Julian Otalvaro -#' @seealso \code{\link{PM_load}} +#' @seealso \code{\link{PM_load}}' +#' #### PACKAGE IMPORTS FOR REPORT TEMPLATES +#' ## ggplot +#' @importFrom DT datatable +#' @import patchwork +#' @import htmltools +#' @import knitr +#' @import rmarkdown #' @export PM_report <- function(PM_result, template = getPMoptions("report_template"), outfile, show = TRUE) { diff --git a/man/PM_report.Rd b/man/PM_report.Rd index 1a2b2144..32694621 100644 --- a/man/PM_report.Rd +++ b/man/PM_report.Rd @@ -34,7 +34,12 @@ Generates an HTML-report in the current working directory. Generates a report from a specified Rmd template } \seealso{ -\code{\link{PM_load}} +\code{\link{PM_load}}' +\subsection{PACKAGE IMPORTS FOR REPORT TEMPLATES}{ +} + +\subsection{ggplot}{ +} } \author{ Markus Hovd and Julian Otalvaro From a861421fee6a6b1ffc88e2847c9f9f47b4f28d8b Mon Sep 17 00:00:00 2001 From: "Julian D. Otalvaro" Date: Sun, 4 Feb 2024 15:41:05 +0000 Subject: [PATCH 2/2] add mvtnorm --- DESCRIPTION | 1 + 1 file changed, 1 insertion(+) diff --git a/DESCRIPTION b/DESCRIPTION index dfc581a0..d3486d12 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -62,6 +62,7 @@ Imports: tidygraph, tidyr, trelliscopejs, + mvtnorm, utils Suggests: askpass,