From 500a77e9b2350eb153b8c2a213249754e7360649 Mon Sep 17 00:00:00 2001 From: Vedha Viyash Date: Fri, 17 Nov 2023 12:33:20 +0530 Subject: [PATCH] chore: match complete arg name --- R/DownloadModule.R | 2 +- R/Previewer.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/DownloadModule.R b/R/DownloadModule.R index 147b5269..8161be89 100644 --- a/R/DownloadModule.R +++ b/R/DownloadModule.R @@ -65,7 +65,7 @@ download_report_button_srv <- function(id, checkmate::assert_list(rmd_yaml_args, names = "named") checkmate::assert_names( names(rmd_yaml_args), - subset = c("author", "title", "date", "output", "toc"), + subset.of = c("author", "title", "date", "output", "toc"), must.include = "output" ) checkmate::assert_true(rmd_yaml_args[["output"]] %in% rmd_output) diff --git a/R/Previewer.R b/R/Previewer.R index 41a3d913..0f5dd200 100644 --- a/R/Previewer.R +++ b/R/Previewer.R @@ -62,7 +62,7 @@ reporter_previewer_srv <- function(id, checkmate::assert_list(rmd_yaml_args, names = "named") checkmate::assert_names( names(rmd_yaml_args), - subset = c("author", "title", "date", "output", "toc"), + subset.of = c("author", "title", "date", "output", "toc"), must.include = "output" ) checkmate::assert_true(rmd_yaml_args[["output"]] %in% rmd_output)