Skip to content

Commit

Permalink
Internal improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicChr committed Nov 24, 2024
1 parent 1ebb89d commit 18797a6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 282 deletions.
10 changes: 8 additions & 2 deletions R/abc.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,14 @@ fun_ns <- function(x, env = rlang::caller_env()){
x <- tryCatch(get(as.character(x), envir = env),
error = function(e) ".error")
if (identical(x, ".error")){
return("NULL")
return("")
}
}
unname(getNamespaceName(environment(x) %||% .BaseNamespaceEnv))
env <- environment(x)
if (is.null(env)){
""
} else {
unname(getNamespaceName(env))
}

}
1 change: 1 addition & 0 deletions R/fastplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
"_PACKAGE"

.datatable.aware <- TRUE
utils::globalVariables(":=")
Loading

0 comments on commit 18797a6

Please sign in to comment.