From 09c68a271b008dfda82e8e27191ae95dce991281 Mon Sep 17 00:00:00 2001 From: John Harrold Date: Sat, 21 Dec 2024 14:07:03 -0800 Subject: [PATCH] fixed FG_test_mksession.Rd --- R/FG_Server.R | 4 ++-- man/FG_test_mksession.Rd | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/R/FG_Server.R b/R/FG_Server.R index 60771e2..5d0be56 100644 --- a/R/FG_Server.R +++ b/R/FG_Server.R @@ -2954,14 +2954,14 @@ res} #'@title Populate Session Data for Module Testing #'@description Populates the supplied session variable for testing. #'@param session Shiny session variable (in app) or a list (outside of app) -#' session = shiny::MockShinySession$new() +#' session = shiny::MockShinySession$new(). +#'@param full Boolean indicating if the full test session should be created. #'@return The FG portion of the `all_sess_res` returned from \code{\link{FM_app_preload}} #'@examples #' session = shiny::MockShinySession$new() #' sess_res = FG_test_mksession(session=session) #'@seealso \code{\link{FM_app_preload}} FG_test_mksession = function(session=list(), full=FALSE){ - if(full){ sources = c(system.file(package="formods", "preload", "ASM_preload.yaml"), system.file(package="formods", "preload", "UD_preload.yaml"), diff --git a/man/FG_test_mksession.Rd b/man/FG_test_mksession.Rd index cca8cab..e48a471 100644 --- a/man/FG_test_mksession.Rd +++ b/man/FG_test_mksession.Rd @@ -8,7 +8,9 @@ FG_test_mksession(session = list(), full = FALSE) } \arguments{ \item{session}{Shiny session variable (in app) or a list (outside of app) -session = shiny::MockShinySession$new()} +session = shiny::MockShinySession$new().} + +\item{full}{Boolean indicating if the full test session should be created.} } \value{ The FG portion of the `all_sess_res` returned from \code{\link{FM_app_preload}}