Read R file(s) as a tidy data frame

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

d <- read_rfiles( tidycode_example("example_plot.R"), tidycode_example("example_analysis.R") )