MatthieuStigler / matPkg

Other
2 stars 0 forks source link

mat_99_list_Rfiles: error when no yaml #61

Open MatthieuStigler opened 3 years ago

MatthieuStigler commented 3 years ago

Problem is that mat_parse_yaml will return NULL (as does rmarkdown:::parse_yaml_front_matter) , which will be void when using res %>% tidyr::unnest_wider(.data$yaml) %>% tidyr::unnest_wider(.data$result) %>%

library(matPkg)
path_rscripts <- system.file("html", package = "matPkg")
mat_99_list_Rfiles(path_rscripts)
#> Error: Column `result` not found in `.data`

Created on 2020-12-01 by the reprex package (v0.3.0)