answer_rmd
default date in header is in ISO8601 formatanswer_rmd
stops accordingly to Rmd input whenknitr::knit_exit()
is found (unnamed R chunk with echo FALSE)
- add an option
exclude_chunk
to remove fromanswer_rmd
specific chunks
- replace
question_suffix
andsolution_suffix
bysuffix
inunilur::tutorial_*
orunilur::tutorial_*_solution
to change the suffix appended to the rendered file. - remove
box.colour
chunk option (replaced bybox.body
andbox.header
which accepts a list to definefill
andcolour
) - The automatic adjustement of header colour changes:
box.colour
was used to define the header colour and the colour of the body was derived from this value. From now, ifbox.header
is omitted, thefill
colour is derived from thebox.body
fill colour. - rename chunk option
response.space
toanswer.lines
inunilur::examen_pdf
.
- use latex template shipped with rmarkdown and use includes to integrate unilur customisations.
- rewrite the format functions to deduplicate the source code.
- remove output and source hooks in pdf output: might again produce troubles with unexpected page breaks using boxes.
- redefine box chunk options:
box.title
,box.body
,box.header
andbox.collapse
. Colours for background and text can be set for the body and the header using a list (to provide the colours forfill
andcolour
) - add support for icons in HTML output using the
box.icon
chunk option. Use font awesome names ("fa-") or ionicon names ("ion-") to specify the desired icon. Alternatively you can use the output of packages likeicon
.
- removed the collapse setting from the yaml header: The option should be adjusted for each chunk (use
knitr::opts_chunk$set(collapse = TRUE)
to define the default setting). - changed chunk options to adjust a custom box colour and title: use
box.colour
andbox.title
(instead ofbox
andboxtitle
)
- all boxes in
tutorial_html
are now collapsible. Adjust the chunk optionbox.collapse
toTRUE
(collapsed),FALSE
(collapsible but uncollapsed) orNULL
(non collapsible box).
- HTML widgets were not rendered
- Keep indentation of code chunks when rendering HTML boxes and avoid breaking nested lists (Thanks to Jarrod Hadfield for reporting this issue)
unilur::tutorial_html
andunilur::tutorial_html_solution
now renders solution and coloured boxes as bootstrap panels. In addition, solution boxes can be collapsed and expanded. The initial state can be adjusted using thecollapse
yaml option.- Added
unilur::answer_rmd
to create a Rmd file with solutions being removed. This file can be used by students to fill in their answers. - Improved knitting of files with
solution = FALSE
by disabling the evaluation of these chunks.
unilur::tutorial
was replaced byunilur::tutorial_pdf
andunilur::tutorial_html
- Removed
unilur::knit
:- Output filename is defined in the
unilur::tutorial_pdf
orunilur::tutorial_html
format (<basename>_question.<ext>
or<basename>_solution.<ext>
). - Allows to use the interactive
knit
menu in Rstudio in particular with custom formats now showing up in Knit menu (tested in Rstudio 0.99.1197 preview)
- Output filename is defined in the
- Isolated the
unilur::tutorial
optionexam
and created a newunilur::examen_pdf
format