Set default names for the chunks of problem set rmd files

name.rmd.chunks(
  rmd.file = NULL,
  txt = readLines(rmd.file, warn = FALSE),
  only.empty.chunks = FALSE,
  keep.options = TRUE,
  valid.file.name = FALSE
)

Arguments

rmd.file

file name

txt

alternative the code as txt file

only.empy.chunks

if FALSE (default) name all chunks. Otherwise only empty chunks are overwritten

keep.option

if TRUE (default) don't change chunk options; otherwise clear all chunk options (dangerous)