name.rmd.chunks: Set default names for the chunks of problem set rmd files

View source: R/create_ps.r

name.rmd.chunksR Documentation

Set default names for the chunks of problem set rmd files

Description

Set default names for the chunks of problem set rmd files

Usage

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)


skranz/RTutor documentation built on Feb. 7, 2024, 12:53 a.m.