Skip to content

Commit

Permalink
Inform at startup when OSF_SERVER is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwolen committed Feb 7, 2019
1 parent 6a2e58d commit 672a532
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/zzz.R
Expand Up @@ -24,4 +24,11 @@
if (!is.null(getOption("osfr.pat"))) {
packageStartupMessage("Automatically registered OSF personal access token")
}

server <- Sys.getenv("OSF_SERVER")
if (!is.null(server)) {
packageStartupMessage(
sprintf("<Testing server enabled: %s.osf.io>", tolower(server))
)
}
}

0 comments on commit 672a532

Please sign in to comment.