From 5a485324aa4a0d8eb668b4aa7db2e5220942b72e Mon Sep 17 00:00:00 2001 From: Martin Chan Date: Tue, 13 Jul 2021 14:56:59 +0100 Subject: [PATCH] fix: namespace errors --- R/subject_scan.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/subject_scan.R b/R/subject_scan.R index 2e2863b2..ec0abca5 100644 --- a/R/subject_scan.R +++ b/R/subject_scan.R @@ -44,6 +44,7 @@ #' - `"data"`: data frame. #' #' @import dplyr +#' @import ggplot2 #' #' @examples #' mt_data %>% subject_scan(hrvar = "Organizer_Organization") @@ -166,7 +167,7 @@ subject_scan <- function(data, out_simple <- out_tb_wide %>% select(-ends_with("_n")) %>% - set_names(nm = gsub(pattern = "_word", replacement = "", + purrr::set_names(nm = gsub(pattern = "_word", replacement = "", x = names(.))) # return chunk -------------------------------------------------------