tests/testthat/helper-auth.R

# Test helper functions

skip_if_no_auth <- function() {
  auth_token <- Sys.getenv("SENSORTOWER_AUTH_TOKEN")
  if (auth_token == "") {
    skip("Sensor Tower authentication token not found")
  }
}

Try the sensortowerR package in your browser

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

sensortowerR documentation built on March 18, 2026, 5:07 p.m.