From c57446dd5009970e339eb07bef19387a7cbd2753 Mon Sep 17 00:00:00 2001 From: hadley Date: Wed, 9 Aug 2017 12:43:20 -0500 Subject: [PATCH] Update README setup chunk Fixes #19 --- NEWS.md | 3 ++- inst/templates/omni-README | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index e65d6ea62..8f8db7f8a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,7 +2,8 @@ * `use_readme_rmd()` now puts images in `man/figures/` and no longer adds to `.Rbuildgnore`. This ensures that the rendered `README.md` will - also work on CRAN (#16, #19) + also work on CRAN (#16, #19). The first chunk now uses `include = FALSE` + and is named setup (#19). * `use_github()` now has an organisation parameter so you can create repos in organisations (#4). diff --git a/inst/templates/omni-README b/inst/templates/omni-README index 55aba4870..73639a3a2 100644 --- a/inst/templates/omni-README +++ b/inst/templates/omni-README @@ -11,7 +11,7 @@ output: -```{r, echo = FALSE} +```{r setup, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>",