This report consists of two Rmarkdown files. report.Rmd is the main workhorse. It can be run for individual ecological sites by updating the default values in the YAML header params
section. batch.Rmd is used to run multiple instances of report.Rmd on sets of ecological sites that have data in your local NASIS database; it programatically updates the Rmarkdown parameters for each run, and stores some of the data from your local database in memory between runs to save time.
Navigate to your desired parent working directory in R.
Run soilReports::reportSetup("southwest/edit-soil-features")
to install dependencies
Run soilReports::reportInit("southwest/edit-soil-features", outputDir = "EDITSoilFeatures")
to install a report instance in outputDir
. Specify overwrite
argument as needed.
Navigate to "EDITSoilFeatures"
directory and inspect report contents. Open report.Rmd in RStudio and click "Knit" button, or render()
with {rmarkdown} manually.
report.Rmd - main report document, can be run for individual sites by updating YAML header at top of file
batch.Rmd - handles configuration and rendering of multiple reports
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.