-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate global variables defintition #1463
Comments
Something like this: env <- pkgload::load_all()$env
objs <- as.list(env)
funs <- Filter(is.function, objs)
globals <- lapply(funs, codetools::findGlobals)
known <- c(
names(pkgload::imports_env("dbplyr")),
names(pkgload::ns_env("dbplyr")),
names(pkgload::pkg_env("base"))
)
all_globals <- setdiff(unique(unlist(all_globals)), known)
all_globals <- all_globals[all_globals == toupper(all_globals)]
dput(sort(all_globals)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sql_expr()
?The text was updated successfully, but these errors were encountered: