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 490b981
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
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 (!nzchar(server)) {
packageStartupMessage(
sprintf("<Testing server enabled: %s.osf.io>", tolower(server))
)
}
}

0 comments on commit 490b981

Please sign in to comment.