Skip to contents

Parse code to check for errors

Usage

code_parse_r(file_path = "", text = NULL)

Arguments

file_path

a vector of file paths to check

text

alternative to file_path, pass text directly

Value

a data frame with columns file_path and line

Examples

file_path <- demofile("qmd")
code_parse_r(file_path)
#> # A tibble: 1 × 3
#>   file_path                                                          error msg  
#>   <chr>                                                              <lgl> <chr>
#> 1 /private/var/folders/t6/7x6md_5s2j5bfb324s784yzw0000gn/T/Rtmpvtjq… FALSE NA