Installing from source

Set the appropriate path and run this command:

devtools::install_github("erikerhardt/RmdNameChunk")

Read an Rmd file, update existing prefixed code chunks, and renumber.

library(RmdNameChunk)
rmd_name_chunks(
    fn_in             = "test_in.Rmd"
  , fn_out            = "test_out.Rmd"
  , prefix_chunk_name = "chunk-"
  )

Review the input and output files to see how the chunk header names have been updated.



erikerhardt/RmdNameChunk documentation built on Sept. 13, 2021, 4:23 a.m.