From 18f15f8a7c8df66ec73c4422c3f977812e4a36c9 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Fri, 8 Jan 2021 18:26:04 -0500 Subject: [PATCH] namespace the NS function --- R/screenshot.R | 2 +- man/screenshotButton.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/screenshot.R b/R/screenshot.R index 1da3fa1..626da38 100644 --- a/R/screenshot.R +++ b/R/screenshot.R @@ -111,7 +111,7 @@ screenshot <- function(selector = "body", filename = "shinyscreenshot", id = "", #' @export screenshotButton <- function(selector = "body", filename = "shinyscreenshot", id = "", scale = 1, timer = 0, download = TRUE, server_dir = NULL, - ns = NS(NULL), ...) { + ns = shiny::NS(NULL), ...) { params <- getParams(as.list(environment()), server = FALSE) params$namespace <- ns("") diff --git a/man/screenshotButton.Rd b/man/screenshotButton.Rd index c976b06..e942132 100644 --- a/man/screenshotButton.Rd +++ b/man/screenshotButton.Rd @@ -12,7 +12,7 @@ screenshotButton( timer = 0, download = TRUE, server_dir = NULL, - ns = NS(NULL), + ns = shiny::NS(NULL), ... ) }