get_vars: get_vars - Get the variables that are created in a script.

View source: R/get_vars.R

get_varsR Documentation

get_vars — Get the variables that are created in a script.

Description

Determining the variables that are created in a script is useful for orienting code cleaning (i.e. refactoring) efforts.

Usage

get_vars(script)

Arguments

script

File path to a script or a Script object from CodeDepends.

Value

A list of variables from a given script.

Author(s)

Matthew K. Lau

Examples

script <- system.file(
        "example", 
        "simple_script.R", 
        package = "Rclean")
get_vars(script)

ProvTools/Rclean documentation built on Dec. 7, 2022, 2:16 a.m.