inbo / INBOmd

An R package with a collection of RMarkdown styles and templates. Elaborate examples are available at https://github.com/inbo/INBOmd_examples
https://inbo.github.io/INBOmd
GNU General Public License v3.0
11 stars 2 forks source link

Templates #14

Closed ThierryO closed 7 years ago

ThierryO commented 7 years ago

Add a README with installation instructions and templates for INBO report, INBO slides and Flemish government slides. This pull request solves issues #6 and #7.

Can @inbo/bmk, @peterdesmet and @stijnvanhoey have a look at this? Place comments in this pull request. Or fix problems in the templates branche ;-)

ThierryO commented 7 years ago

FYI @inbo/bmk, @peterdesmet and @stijnvanhoey : If you want to test this in your R version, you need to install the INBOmd version in the templates branch. Note that you also need the latest version of INBOtheme.

# install.packages("devtools")
devtools::install_github("inbo/INBOtheme")
devtools::install_github("inbo/INBOmd", ref = "templates")
ivyjansen commented 7 years ago

Nog een interessante optie voor in _bookdown.yml : "clear_book: TRUE" Dat lost de cache problemen op.

ThierryO commented 7 years ago

@ivyjansen that will actually remove the cache after building the book. So caching is pointless with clearbook: TRUE

florisvdh commented 7 years ago

Some comments that relate to the current state of the templates branch, regarding the report templates:

I wondered what was the motivation behind:

Anyway, my commits (#18) are in line with those decisions. The pandoc.table() can still be re-added, though.

Further remarks:

florisvdh commented 7 years ago

I want to propose making the 'single-Rmd-approach' versus the 'multiple-Rmd-approach' the only fundamental distinction between both report templates, as far as RMarkdown code is concerned. Especially, I see no more need for two different ways of cross-referencing; the bookdown approach is not more complicated. I would use the bookdown-derived output formats in both templates, as they also work on single Rmd files. Then, one is less restricted to one output format when using cross-referencing syntax.

In my pull-request (#18), I did not do such changes though, apart from elaborating alternative output formats. Such changes would have effect on the simple report template, where cross-referencing syntax is now for pdf-output only.

Note: the bookdown output formats also seem to compile with rmarkdown::render(), for single Rmd files.

ThierryO commented 7 years ago
florisvdh commented 7 years ago
florisvdh commented 7 years ago

In the report that I'm making with the bookdown version of inbo_rapport_2015, I see that page numbers are at the left side of pages for new parts and chapters. Shouldn't these pages be at the right side in a report, and therefore their pagenumbers as well?