Selection across scales -- merging evolutionary biology and community ecology to understand trait shifts in response to environmental change
- José Waterton (KBS)
- Jenn Lau (KBS)
- Ken Whitney (SEV)
- Nancy Emery (NWT)
- All code should include sufficient annotation and documentation so that other users can understand and run the scripts
- Use RStudio projects to manage working directory
- Write your scripts such that other users can run the code without modifications. Keep file paths and other variables that might need to be changed at the beginning of the script, just after attaching the necessary libraries
- Check out the Scientific Computing Team’s best practice tips for storing file paths
- Include an attribution header to your scripts or Rmarkdown documents
Example:
## ---------------------------
##
## Script name:
##
## Purpose of script:
##
## Author:
##
## Email:
##
## ---------------------------
library(tidyverse)
NCEAS Scientific Computing Support Team page link