pick_variables: Extract all variables used in the code that exist in the...

View source: R/statements.R

pick_variablesR Documentation

Extract all variables used in the code that exist in the environment

Description

Uses pick_symbols(code) followed by filtering, undefined symbols are not returned.

Usage

pick_variables(code, env)

Arguments

code

list of expressions to extract variables from

env

environment to check for variables

Value

a named list of the variables and their values as defined


sakrejda/swr documentation built on April 16, 2022, 11:57 a.m.