knitr::opts_chunk$set(echo = TRUE) options(width=100)
To install the streamMetabolizer
package, use the remotes
package (running install.packages('remotes')
first if needed). To use remotes::install_github()
it is convenient to set a GitHub Personal Access Token (PAT). There are several methods for setting your PATs within R; the simplest is to call `Sys.setenv(GITHUB_PAT="yyyy"),
replacing yyyy with the PAT you established on the GitHub website.
You may first need to install the unitted
dependency:
remotes::install_github('appling/unitted')
You can then install the most cutting edge version of streamMetabolizer with this command:
remotes::install_github( "USGS-R/streamMetabolizer", # soon to be "DOI-USGS/streamMetabolizer" build_vignettes = TRUE)
The major dependency for Bayesian models is the rstan
package, and installation of that package is rarely as simple as a call to install.packages()
. Start at the rstan wiki page for the most up-to-date installation instructions, which differ by operating system.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.