(note the semi-colon list separator) yielding something like this: ‘assertion ’ 2016)’, or even lists of citations to be contracted where possible given the citation style e.g. 2016 showed that cheese…’ or for a reference like this: ‘assertion (Smith et al. Placing a bibliography option in your Rnotebook’s header and pointing it to a bibtex file containing your citation information permits you to create citations in Rnotebooks using the following syntax: for an in-line citation e.g.
More advanced LaTeX customisations can also be used in conjunction with PDF outputs. output : html_document : df_print : paged # print paged tables - like the default 'html_notebook' format fig_caption : yes number_sections : yes # prepend x.y style numbering to you sections toc : yes # Add a table of contents toc_float : yes # have to TOC float at the side of your HTML page so you do have to keep scrolling to the top -įor a PDF output pdf_document can be used instead of html_document though my preferred table format for PDF is df_print: kable. A recent article in PeerJ provides a nice discussion of these issues and a look at what the future of scientific computing notebooks might resemble. Reproducibility and verifiability are substantial issues in scientific computing, including my own field of biology.
Rnotebooks also have big pluses for reproducibility, creating an Rnotebook that does, explains and references your analysis makes it very easy to give to another at least somewhat competent R user and have them re-run your analysis - potentially with their own variants. Rnotebooks use a simple flavour of markdown with options to render output to HTML and PDF (via LaTeX) formats. Combining Rnotebooks with a version management system such as git gives a robustness similar paper lab book records when it comes to seeing what you did and when coupled with dynamism, portability, share-ability and ease of backup of electronic working. It permits you to organise your code, notes, reasoning and references in one place. Rnotebooks are scientific notebooks for R, somewhat like jupyter for anyone coming from python but baked right into the Rstudio IDE which offers some benefits over the browser based interface of jupyter. For anyone unfamiliar with Rnotebooks here is a quick overview of why you might want to use them more experienced users can skip ahead.