Skip to contents

Detects whether the app is running on a web server (shinyapps.io, Posit Connect) versus locally via run_app().

Usage

check_web_deployment()

Value

Logical TRUE if running on web server, FALSE if local

Examples

if (check_web_deployment()) {
  message("Running on web - some features disabled")
}