Skip to content

traitecoevo/remake_baad_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example remake workflow

This repository contains example code analysing the Biomass and Allometry Database (BAAD), using the remake package for R.

Installing remake

First install some dependencies from cran as follows:

install.packages(c("R6", "yaml", "digest", "crayon", "optparse"))

Now we'll install some packages from github. For this, you'll need the package devtools. If you don't have devtools installed you will see an error "there is no package called 'devtools'"; if that happens install devtools with install.packages("devtools").

Then install the following two packages

devtools::install_github("richfitz/storr")
devtools::install_github("richfitz/remake")

See the info in the remake readme for further details if needed.

Running

Download this repo, then open a new R session with this project set as working directory. We use a number of packages, these can be easily installed by remake:

remake::install_missing_packages()

Then run the following to generate all outputs (figures, table, knitr report):

remake::make()

For comparison, also included is a traditional script Rscript.R that generates the same outputs, without using remake. This script is automatically generated from the remake.yml file, as part of the remake workflow.

About

Example remake workflow using BAAD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages