This repository holds data and supplementary source code to reproduce H isotope data reduction steps in Keller et al. (submitted).
We hope that this code, or any part of it, might prove useful to other members of the scientific community interested in the subject matter. This repository is released under a Creative Commons BY (CC-BY) license, which means all code can be shared and adapted for any purpose as long as appropriate credit is given. See Attribution section for details.
Quarto is a so-called "literate programming" notebook format that enables easy creation of dynamic documents with R and other programming languages. HTML and PDF reports can be generated from Quarto files using knitr, which can be installed automatically with RStudio, and is fully integrated into this cross-platform IDE. All software used for these reports (Quarto, R, RStudio, etc.) is freely available and completely open-source.
The quickest and easiest way is to use RStudio.
- Download and install R for your operating system
- Download and install RStudio for your operating system
- Download and install Quarto for your operating system
- Download a zip file of this repository and unpack it in an easy to find directory on your computer
- Navigate to the directory and double-click the
project.Rproj
file to start RStudio and load this project. - Install the required libraries by running the following command in the Console in RStudio:
install.packages("pak"); pak::pak(c("tidyverse", "latex2exp", "cowplot", "ggrepel", "readxl", "openxlsx", "isoverse/isoreader", "isoverse/isoprocessor"))
or by installing them manually in RStudio's Packages manager. - Open the
.qmd
notebooks in the file browser - To generate an HTML report ("render HTML"), select File --> Render document from the menu. The HTML report will be displayed upon successful completion and is saved as a standalone file in the same directory. All generated data figures are saved as PDF and PNG in the
plots
sub-directory. All generated data tables are saved as XLSX in theoutput
sub-directory.
The R Markdown files in this repository make use of various R modules for data processing, plotting and modelling. All of these should be installed automatically when the first R Markdown file is knitted (if the knitting fails because of a missing package, please install it manually, an error will indicate which package could not be installed).