Skip to content

Commit

Permalink
att_from_rmd: read yaml patch
Browse files Browse the repository at this point in the history
  • Loading branch information
statnmap committed Apr 8, 2019
1 parent 8f0f9cd commit e8a8f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/att_from_rmds.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ att_from_rmd <- function(path, temp_dir = tempdir()) {
)

# Add yaml to the file
yaml <- c("\n# yaml to parse \n", rmarkdown::yaml_front_matter(path)$output)
yaml <- c("\n# yaml to parse \n", paste(unlist(rmarkdown::yaml_front_matter(path)$output), collapse = "\n"))
cat(yaml, file = r_file, append = TRUE)
att_from_rscript(r_file)
}
Expand Down

0 comments on commit e8a8f6a

Please sign in to comment.