tests/testthat/apps/underscored-command.R

#!/usr/bin/env Rapp

switch(
  cmd <- "",
  foo_bar = {
    foo_bar_flag <- TRUE
  },
  help = {}
)

print(as.list(environment(), all.names = TRUE))

Try the Rapp package in your browser

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

Rapp documentation built on June 11, 2026, 5:07 p.m.