File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 167167# ' @rdname satpt
168168# ' @export
169169satpt <- function (
170- y ,
171- by ,
172- exclude = c(NA , NaN ),
173- alpha = 0.05 ,
174- threshold = 0.025 ,
175- dimnames = NULL ,
176- ... ) {
170+ y ,
171+ by ,
172+ exclude = c(NA , NaN ),
173+ alpha = 0.05 ,
174+ threshold = 0.025 ,
175+ dimnames = NULL ,
176+ ...
177+ ) {
177178 # Capture variable name as string for fallback column name ####
178179 var_name <- deparse(expr = substitute(expr = y ))
179180 var_name <- gsub(
@@ -185,11 +186,11 @@ satpt <- function(
185186 # Checking parameter types ####
186187 if (is.atomic(x = y )) {
187188 tmp <- try(
188- expr = y <- char_matrix(y = y , cname = var_name ),
189+ expr = y <- satpt :: char_matrix(y = y , cname = var_name ),
189190 silent = TRUE
190191 )
191192 } else {
192- tmp <- try(expr = y <- char_matrix(y = y ), silent = TRUE )
193+ tmp <- try(expr = y <- satpt :: char_matrix(y = y ), silent = TRUE )
193194 }
194195 if (inherits(x = tmp , what = " try-error" )) {
195196 stop(
@@ -210,7 +211,10 @@ satpt <- function(
210211 perl = FALSE
211212 )
212213 # by is transformed into a vector for ease of use
213- tmp <- try(expr = by <- as.character(char_matrix(y = by ), silent = TRUE ))
214+ tmp <- try(
215+ expr = by <- as.character(satpt :: char_matrix(y = by )),
216+ silent = TRUE
217+ )
214218 if (inherits(x = tmp , what = " try-error" )) {
215219 stop(
216220 paste0(
You can’t perform that action at this time.
0 commit comments