Examples for 'rlang::env_is_user_facing'


Is frame environment user facing?

Aliases: env_is_user_facing

Keywords:

### ** Examples

fn <- function() {
  env_is_user_facing(caller_env())
}

# Direct call of `fn()` from the global env
with(global_env(), fn())
Error in fn(): could not find function "fn"
# Indirect call of `fn()` from a package
with(ns_env("utils"), fn())
Error in fn(): could not find function "fn"

[Package rlang version 1.1.4 Index]