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
If you use the data or code in this repository, please cite the Zenodo archive as well as the Global Change Biology paper.
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 runrenv::restore()
to install all package dependencies. - Install the
targets
package. - Run
targets::tar_make()
ortargets::tar_make_clustermq()
from the R console to run all code and produce all outputs.
- Numbering of and in-text references to equations in
paper.Rmd
is handled bypandoc-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.