Skip to contents

This function scans a specified R package for calls to Sys.getenv() and extracts the names of system variables used within the package's functions. It returns a data frame listing the functions that use system variables and the names of those variables.

Usage

find_sys_variables(package_name)

Arguments

package_name

The name of the R package to scan for system variable usage.

Value

A data frame with two columns: Function and System_Variable. Each row represents a function within the package that uses a system variable, along with the name of the variable.