Closed ThierryO closed 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")
Nog een interessante optie voor in _bookdown.yml : "clear_book: TRUE" Dat lost de cache problemen op.
@ivyjansen that will actually remove the cache after building the book. So caching is pointless with clearbook: TRUE
Some comments that relate to the current state of the templates
branch, regarding the report templates:
I wondered what was the motivation behind:
pandoc.table()
and xtable()
by kable()
. I would rather add them all in the elaborate template, and mention their respective (dis)advantages.language: english
in the template, and translating the templates in English.Anyway, my commits (#18) are in line with those decisions. The pandoc.table()
can still be re-added, though.
Further remarks:
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.
kable()
: fair enough :-), after all it is up to the user to add more stuff. Still, I thought pandoc.table()
had its advantages and supported more complexity, like specifying column width and such. I tend to use kable()
for simpler tables, and pandoc.table()
for more complex ones.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?
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 ;-)