-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBiomass_yieldTables.Rmd
100 lines (68 loc) · 2.4 KB
/
Biomass_yieldTables.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
title: "Biomass_yieldTables"
author: ""
date: "14 December 2021"
output:
html_document:
keep_md: yes
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, eval = FALSE, results = "hold") ## TODO: use 'eval = TRUE'
```
# Overview
Provide an overview of what the module does / how to use the module.
Module documentation should be written so that others can use your module.
This is a template for module documentation, and should be changed to reflect your module.
## R Markdown
R Markdown syntax allows R code, outputs, and figures to be rendered in the documentation.
For help writing in R Markdown, see https://rmarkdown.rstudio.com/.
# Usage
```{r module_usage}
library(SpaDES.core)
setPaths(modulePath = file.path("C:/Eliot/GitHub/Yield/modules"))
getPaths() # shows where the 4 relevant paths are
times <- list(start = 0, end = 10)
parameters <- list(
#.progress = list(type = "text", interval = 1), # for a progress bar
## If there are further modules, each can have its own set of parameters:
#module1 = list(param1 = value1, param2 = value2),
#module2 = list(param1 = value1, param2 = value2)
)
modules <- list("Biomass_yieldTables")
objects <- list()
inputs <- list()
outputs <- list()
mySim <- simInit(times = times, params = parameters, modules = modules,
objects = objects)
mySimOut <- spades(mySim)
```
# Parameters
Provide a summary of user-visible parameters.
```{r moduleParams, echo = FALSE}
df_params <- SpaDES.core::moduleParams("Biomass_yieldTables", "C:/Eliot/GitHub/Yield/modules")
knitr::kable(df_params)
```
# Events
Describe what happens for each event type.
## Plotting
Write what is plotted.
## Saving
Write what is saved.
# Data dependencies
## Input data
How to obtain input data, and a description of the data required by the module.
If `sourceURL` is specified, `downloadData("Biomass_yieldTables", "C:/Eliot/GitHub/Yield/modules")` may be sufficient.
```{r moduleInputs, echo = FALSE}
df_inputs <- SpaDES.core::moduleInputs("Biomass_yieldTables", "C:/Eliot/GitHub/Yield/modules")
knitr::kable(df_inputs)
```
## Output data
Description of the module outputs.
```{r moduleOutputs, echo = FALSE}
df_outputs <- SpaDES.core::moduleOutputs("Biomass_yieldTables", "C:/Eliot/GitHub/Yield/modules")
knitr::kable(df_outputs)
```
# Links to other modules
Describe any anticipated linkages to other modules.