Skip to content
Snippets Groups Projects
Commit 1941fffe authored by B.Anderson's avatar B.Anderson
Browse files

added env.R to hold all repo params. Gets sourced by setup()

parent 66258a20
No related branches found
No related tags found
No related merge requests found
env.R 0 → 100644
# parameters widely re-used across the repo
# here's why a project level .Rprofile should not be used for this job https://support.rstudio.com/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf
repoParams <- list() # params holder as a list. Sooooo much easier with tab complete
# Location ----
# attempt to guess the platform & user
repoParams$info <- Sys.info()
repoParams$sysname <- repoParams$info[[1]]
repoParams$nodename <- repoParams$info[[4]]
repoParams$login <- repoParams$info[[6]]
repoParams$user <- repoParams$info[[7]]
message("You're ", repoParams$user, " using " , repoParams$sysname, " on ", repoParams$nodename)
message("Hopefully that's what you expected...")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment