Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

BrunaLab/HeliconiaDemography

Repository files navigation

HeliconiaDemography

Run Tests Zenodo DOI Paper DOI

This repository contains the data and code for:

Scott ER, Uriarte M, Bruna EM (2021) Delayed effects of climate on vital rates lead to demographic divergence in Amazonian forest fragments. Global Change Biology. https://doi.org/10.1111/gcb.15900

How to cite

If you use the data or code in this repository, please cite the Zenodo archive as well as the Global Change Biology paper.

How to run

This research compendium has been developed using the statistical programming language R. To work with the compendium, you will need installed on your computer the R software itself and optionally RStudio Desktop.

You can download the compendium as a zip from from this URL: master.zip.

To run the compendium and reproduce all outputs:

  • Open the project in RStudio by double-clicking the HeliconiaDemography.Rproj file.
  • Install the renv package if it’s not already installed and run renv::restore() to install all package dependencies.
  • Install the targets package.
  • Run targets::tar_make() or targets::tar_make_clustermq() from the R console to run all code and produce all outputs.

Additional Dependencies

  • Numbering of and in-text references to equations in paper.Rmd is handled by pandoc-crossref, which may not be part of the standard RStudio pandoc installation. You might need to install it for the main text to knit correctly to Word.