We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
'rprofile()` should store other objects defined in the config somewhere. Currently it discards anything not defined within paths and autos
No response
rprofile <- function(config) { if ("envsetup:paths" %in% search()) { detach("envsetup:paths", character.only = TRUE) } if ("envsetup:other" %in% search()) { detach("envsetup:other", character.only = TRUE) } # remove autos and pass everything else to "envsetup:paths" config_minus_autos_paths <- config config_minus_autos_paths$autos <- NULL config_minus_autos_paths$paths <- NULL # attach after package to allow functions from package to be used in config if (any(search() == "package:envsetup")) { pos <- which(search() == "package:envsetup") + 1 } else { (pos <- 2L) } attach(config$paths, name = "envsetup:paths", pos = pos ) attach(config_minus_autos_paths, name = "envsetup:other", pos = pos ) set_autos(config$autos) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Idea
'rprofile()` should store other objects defined in the config somewhere. Currently it discards anything not defined within paths and autos
Relevant Input
No response
Relevant Output
No response
Reproducible Example/Pseudo Code
The text was updated successfully, but these errors were encountered: