Learn R Programming

attachment (version 0.4.5)

att_from_data: Look for functions called in data loading code

Description

Look for functions called in data loading code

Usage

att_from_data(chr)

Value

A character vector containing the names of the packages from which datasets are being loaded.

Arguments

chr

A character vector containing the code as a string. The code should follow the pattern used for loading data with data(), specifying the dataset and package.

Examples

Run this code

vec_char <- 'data("starwars", package = "dplyr")'
att_from_data(vec_char)

Run the code above in your browser using DataLab