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/cleanR documentation built on Jan. 7, 2023, 2:20 p.m.