jacobbien / litr-project

Writing R Packages with Literate Programming

Home Page:https://jacobbien.github.io/litr-project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move litr::document() to litr::render()?

jacobbien opened this issue · comments

The arguments for making the move are

  • we always need it to be run, so why leave it up to the user
  • we want the Rmd to be as uncluttered as possible

A downside is if devtools::build() or devtools::install() or devtools::check() or devtools::test() are in the Rmd, we would need to include litr::document() to be run first. However, a user can simply add litr::document() before these other commands if so desired (in which case litr::document() would be run twice).