tidycode (version 0.1.0)

read_rfiles: Read R file(s) as a tidy data frame

Description

Read R file(s) as a tidy data frame

Usage

read_rfiles(...)

Arguments

...

One or more quoted R file paths to read

Value

A tidy data frame, a tbl_df, with one row per R call. There will be three columns,

  • file: the path of the original R file

  • expr: the R call

  • line: the line of the R call

Examples

Run this code
# NOT RUN {
d <- read_rfiles(
  tidycode_example("example_plot.R"),
  tidycode_example("example_analysis.R")
)
# }

Run the code above in your browser using DataCamp Workspace