Roland A. Knapp (roland.knapp(at)ucsb.edu)
Mark Q. Wilber (mqwilber(at)gmail.com)
This repository is organized as a reproducible research compendium, and describes frog translocations to reestablish populations of the endangered mountain yellow-legged frog. It contains data on frog survival following translocations conducted during the period 2006-2020, R code to identify predictors of survival and estimate population viability, a notebook to document translocation-related analyses, and a manuscript (submitted). Throughout this repository, frog populations are referenced only by 5-digit unique site identifiers. No site names or x-y coordinates are provided to protect these sensitive populations to the maximum extent possible.
This repository contains the following directories and files:
code/
directory: Rmd
and qmd
files to create and analyze the project datasets, and create figures. data/
directory: Raw and cleaned data, and map data/layers.doc/
directory: Manuscript and notebook files.out/
directory: Output files, including files related to the viability analyses.A notebook describing dataset creation and analysis is available in the doc/notebook directory. Link is to a README file that describes how to view the notebook directly from GitHub.
conda env create -f environment.yml
. conda activate r_env_translocation
environment.yml
file.
devtools
you are often prompted to install additional software outside of R. Linux typically tells you what additional packages you need to successfully install devtools
in any error message you might get when installing this R package.make install_packages
to ensure that you have the necessary packages installed in your R environment.make all
in the command line.make trans_analysis
in the command line.make viability_analysis
in the command line.make clean
in the command line.translocation.qmd
to latex format. python convert_qmd_to_pnas_latex.py
in the command line. pdflatex translocation_pnas.tex
, bibtex translocation_pnas
, pdflatex translocation_pnas.tex
, pdflatex translocation_pnas.tex
pdflatex translocation_pnas_SI.tex
, bibtex translocation_pnas_SI
, pdflatex translocation_pnas_SI.tex
, pdflatex translocation_pnas_SI.tex
tlmgr install <package_name>
. Roland Knapp, Research Biologist, University of California Sierra Nevada Aquatic Research Laboratory, Mammoth Lakes, CA 93546 USA; rolandknapp(at)ucsb.edu, https://mountainlakesresearch.com/roland-knapp/