Create a matahari-esque data frame from a file.

dance_recital(code, evaluate = TRUE)

Arguments

code

A string or the path to a file containing R code.

evaluate

Logical, indicating whether to evaluate the code, default is TRUE

Examples

code_file <- system.file("test", "sample_code.R", package = "matahari") dance_recital(code_file)
#> # A tibble: 7 x 6 #> expr value error output warnings messages #> <list> <list> <list> <list> <list> <list> #> 1 <language> <dbl [1]> <NULL> <chr [1]> <chr [0]> <chr [0]> #> 2 <chr [1]> <chr [1]> <NULL> <chr [1]> <chr [0]> <chr [0]> #> 3 <language> <dbl [1]> <NULL> <chr [1]> <chr [0]> <chr [0]> #> 4 <language> <NULL> <smplErrr> <NULL> <NULL> <NULL> #> 5 <language> <chr [1]> <NULL> <chr [1]> <chr [1]> <chr [0]> #> 6 <language> <NULL> <NULL> <chr [1]> <chr [0]> <chr [1]> #> 7 <language> <NULL> <NULL> <chr [1]> <chr [0]> <chr [0]>