tests/testthat/setup.R

library(httptest)

# For contexts where the package needs to be fooled
# no need for a real secret
if (!nzchar(Sys.getenv('OS_API_KEY'))) {
  Sys.setenv(OS_API_KEY = "foobar")
}

Try the osdatahub package in your browser

Any scripts or data that you put into this service are public.

osdatahub documentation built on April 11, 2025, 5:52 p.m.