Skip to content

Commit 787e34e

Browse files
Slightly more readable syntax (#17)
* Slightly more readable syntax * Specify R language in code chunk * Incorporate a couple Copilot suggestions * Render website --------- Co-authored-by: jmwingenroth <jwing421@gmail.com>
1 parent 89b2cf1 commit 787e34e

40 files changed

Lines changed: 2575 additions & 105 deletions

02-data.Rmd

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,20 @@ This section will go over how to access data stored in the emLab data directorie
9696

9797
2. Set the base data directory at the top of your code to the location directory lives. You should be able to use the following code snippet to do this, which should work on either your local machines, or on a GRIT server such as quebracho or sequoia. Note that this code will automatically generate the correct directory path if using a GRIT server or a local Mac or Windows machine. If using a local Linux machine, you will need to manually modify this to incorporate your unique user name so that it matches the directory entered in Step 9 above.
9898

99-
```
100-
# First determine if system is quebracho or sequoia, our GRIT servers. If so, set directory appropriately
101-
data_directory_base <- ifelse(Sys.info()["nodename"] == "quebracho" | Sys.info()["nodename"] == "sequoia",
102-
"/home/emlab",
103-
# Otherwise, set the directory for local machines based on the OS
104-
# If using Mac OS, the directory will be automatically set as follows
105-
ifelse(Sys.info()["sysname"]=="Darwin",
106-
"/Users/Shared/nextcloud/emLab",
107-
# If using Windows, the directory will be automatically set as follows
108-
ifelse(Sys.info()["sysname"]=="Windows",
109-
"G:/Shared\ drives/nextcloud/emLab",
110-
# If using Linux, will need to manually modify the following directory path based on their user name
111-
# Replace your_username with your local machine user name
112-
"/home/your_username/Nextcloud")))
99+
```{r}
100+
# Setting the base data directory in R.
101+
# First determine if system is one of our GRIT servers (quebracho or sequoia).
102+
# Otherwise, set the directory for local machines based on the OS (Darwin, Windows, or Linux).
103+
# Finally, if no conditions are met, set the directory to directly within the default home
104+
# directory.
105+
106+
data_directory_base <- dplyr::case_when(
107+
Sys.info()["nodename"] %in% c("quebracho", "sequoia") ~ "/home/emlab", # GRIT servers
108+
Sys.info()["sysname"] == "Darwin" ~ "/Users/Shared/nextcloud/emLab", # Mac OS
109+
Sys.info()["sysname"] == "Windows" ~ "G:/Shared drives/nextcloud/emLab", # Windows OS
110+
Sys.info()["sysname"] == "Linux" ~ "/home/your_username/Nextcloud", # Linux OS (use your username)
111+
TRUE ~ "~/Nextcloud" # Anything else
112+
)
113113
```
114114

115115

docs/1-file-structure.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>1 File Structure | emLab Standard Operating Procedures</title>
88
<meta name="description" content="Standard operating procedures for emLab projects" />
9-
<meta name="generator" content="bookdown 0.45 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.46 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="1 File Structure | emLab Standard Operating Procedures" />
1212
<meta property="og:type" content="book" />
@@ -23,7 +23,7 @@
2323
<meta name="author" content="Environmental Markets Lab (emLab)" />
2424

2525

26-
<meta name="date" content="2025-12-01" />
26+
<meta name="date" content="2026-04-09" />
2727

2828
<meta name="viewport" content="width=device-width, initial-scale=1" />
2929
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -54,6 +54,71 @@
5454
<script src="assets/anchor-sections-1.1.0/anchor-sections.js"></script>
5555

5656

57+
<style type="text/css">
58+
html { -webkit-text-size-adjust: 100%; }
59+
pre > code.sourceCode { white-space: pre; position: relative; }
60+
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
61+
pre > code.sourceCode > span:empty { height: 1.2em; }
62+
.sourceCode { overflow: visible; }
63+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
64+
pre.sourceCode { margin: 0; }
65+
@media screen {
66+
div.sourceCode { overflow: auto; }
67+
}
68+
@media print {
69+
pre > code.sourceCode { white-space: pre-wrap; }
70+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
71+
}
72+
pre.numberSource code
73+
{ counter-reset: source-line 0; }
74+
pre.numberSource code > span
75+
{ position: relative; left: -4em; counter-increment: source-line; }
76+
pre.numberSource code > span > a:first-child::before
77+
{ content: counter(source-line);
78+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
79+
border: none; display: inline-block;
80+
-webkit-touch-callout: none; -webkit-user-select: none;
81+
-khtml-user-select: none; -moz-user-select: none;
82+
-ms-user-select: none; user-select: none;
83+
padding: 0 4px; width: 4em;
84+
color: #aaaaaa;
85+
}
86+
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
87+
div.sourceCode
88+
{ }
89+
@media screen {
90+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
91+
}
92+
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
93+
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
94+
code span.at { color: #7d9029; } /* Attribute */
95+
code span.bn { color: #40a070; } /* BaseN */
96+
code span.bu { color: #008000; } /* BuiltIn */
97+
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
98+
code span.ch { color: #4070a0; } /* Char */
99+
code span.cn { color: #880000; } /* Constant */
100+
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
101+
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
102+
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
103+
code span.dt { color: #902000; } /* DataType */
104+
code span.dv { color: #40a070; } /* DecVal */
105+
code span.er { color: #ff0000; font-weight: bold; } /* Error */
106+
code span.ex { } /* Extension */
107+
code span.fl { color: #40a070; } /* Float */
108+
code span.fu { color: #06287e; } /* Function */
109+
code span.im { color: #008000; font-weight: bold; } /* Import */
110+
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
111+
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
112+
code span.op { color: #666666; } /* Operator */
113+
code span.ot { color: #007020; } /* Other */
114+
code span.pp { color: #bc7a00; } /* Preprocessor */
115+
code span.sc { color: #4070a0; } /* SpecialChar */
116+
code span.ss { color: #bb6688; } /* SpecialString */
117+
code span.st { color: #4070a0; } /* String */
118+
code span.va { color: #19177c; } /* Variable */
119+
code span.vs { color: #4070a0; } /* VerbatimString */
120+
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
121+
</style>
57122

58123
<style type="text/css">
59124

docs/1.1-folder-naming.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>1.1 Folder Naming | emLab Standard Operating Procedures</title>
88
<meta name="description" content="Standard operating procedures for emLab projects" />
9-
<meta name="generator" content="bookdown 0.45 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.46 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="1.1 Folder Naming | emLab Standard Operating Procedures" />
1212
<meta property="og:type" content="book" />
@@ -23,7 +23,7 @@
2323
<meta name="author" content="Environmental Markets Lab (emLab)" />
2424

2525

26-
<meta name="date" content="2025-12-01" />
26+
<meta name="date" content="2026-04-09" />
2727

2828
<meta name="viewport" content="width=device-width, initial-scale=1" />
2929
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -54,6 +54,71 @@
5454
<script src="assets/anchor-sections-1.1.0/anchor-sections.js"></script>
5555

5656

57+
<style type="text/css">
58+
html { -webkit-text-size-adjust: 100%; }
59+
pre > code.sourceCode { white-space: pre; position: relative; }
60+
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
61+
pre > code.sourceCode > span:empty { height: 1.2em; }
62+
.sourceCode { overflow: visible; }
63+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
64+
pre.sourceCode { margin: 0; }
65+
@media screen {
66+
div.sourceCode { overflow: auto; }
67+
}
68+
@media print {
69+
pre > code.sourceCode { white-space: pre-wrap; }
70+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
71+
}
72+
pre.numberSource code
73+
{ counter-reset: source-line 0; }
74+
pre.numberSource code > span
75+
{ position: relative; left: -4em; counter-increment: source-line; }
76+
pre.numberSource code > span > a:first-child::before
77+
{ content: counter(source-line);
78+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
79+
border: none; display: inline-block;
80+
-webkit-touch-callout: none; -webkit-user-select: none;
81+
-khtml-user-select: none; -moz-user-select: none;
82+
-ms-user-select: none; user-select: none;
83+
padding: 0 4px; width: 4em;
84+
color: #aaaaaa;
85+
}
86+
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
87+
div.sourceCode
88+
{ }
89+
@media screen {
90+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
91+
}
92+
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
93+
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
94+
code span.at { color: #7d9029; } /* Attribute */
95+
code span.bn { color: #40a070; } /* BaseN */
96+
code span.bu { color: #008000; } /* BuiltIn */
97+
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
98+
code span.ch { color: #4070a0; } /* Char */
99+
code span.cn { color: #880000; } /* Constant */
100+
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
101+
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
102+
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
103+
code span.dt { color: #902000; } /* DataType */
104+
code span.dv { color: #40a070; } /* DecVal */
105+
code span.er { color: #ff0000; font-weight: bold; } /* Error */
106+
code span.ex { } /* Extension */
107+
code span.fl { color: #40a070; } /* Float */
108+
code span.fu { color: #06287e; } /* Function */
109+
code span.im { color: #008000; font-weight: bold; } /* Import */
110+
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
111+
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
112+
code span.op { color: #666666; } /* Operator */
113+
code span.ot { color: #007020; } /* Other */
114+
code span.pp { color: #bc7a00; } /* Preprocessor */
115+
code span.sc { color: #4070a0; } /* SpecialChar */
116+
code span.ss { color: #bb6688; } /* SpecialString */
117+
code span.st { color: #4070a0; } /* String */
118+
code span.va { color: #19177c; } /* Variable */
119+
code span.vs { color: #4070a0; } /* VerbatimString */
120+
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
121+
</style>
57122

58123
<style type="text/css">
59124

docs/1.2-google-shared-drive.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>1.2 Google Shared Drive | emLab Standard Operating Procedures</title>
88
<meta name="description" content="Standard operating procedures for emLab projects" />
9-
<meta name="generator" content="bookdown 0.45 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.46 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="1.2 Google Shared Drive | emLab Standard Operating Procedures" />
1212
<meta property="og:type" content="book" />
@@ -23,7 +23,7 @@
2323
<meta name="author" content="Environmental Markets Lab (emLab)" />
2424

2525

26-
<meta name="date" content="2025-12-01" />
26+
<meta name="date" content="2026-04-09" />
2727

2828
<meta name="viewport" content="width=device-width, initial-scale=1" />
2929
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -54,6 +54,71 @@
5454
<script src="assets/anchor-sections-1.1.0/anchor-sections.js"></script>
5555

5656

57+
<style type="text/css">
58+
html { -webkit-text-size-adjust: 100%; }
59+
pre > code.sourceCode { white-space: pre; position: relative; }
60+
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
61+
pre > code.sourceCode > span:empty { height: 1.2em; }
62+
.sourceCode { overflow: visible; }
63+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
64+
pre.sourceCode { margin: 0; }
65+
@media screen {
66+
div.sourceCode { overflow: auto; }
67+
}
68+
@media print {
69+
pre > code.sourceCode { white-space: pre-wrap; }
70+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
71+
}
72+
pre.numberSource code
73+
{ counter-reset: source-line 0; }
74+
pre.numberSource code > span
75+
{ position: relative; left: -4em; counter-increment: source-line; }
76+
pre.numberSource code > span > a:first-child::before
77+
{ content: counter(source-line);
78+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
79+
border: none; display: inline-block;
80+
-webkit-touch-callout: none; -webkit-user-select: none;
81+
-khtml-user-select: none; -moz-user-select: none;
82+
-ms-user-select: none; user-select: none;
83+
padding: 0 4px; width: 4em;
84+
color: #aaaaaa;
85+
}
86+
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
87+
div.sourceCode
88+
{ }
89+
@media screen {
90+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
91+
}
92+
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
93+
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
94+
code span.at { color: #7d9029; } /* Attribute */
95+
code span.bn { color: #40a070; } /* BaseN */
96+
code span.bu { color: #008000; } /* BuiltIn */
97+
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
98+
code span.ch { color: #4070a0; } /* Char */
99+
code span.cn { color: #880000; } /* Constant */
100+
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
101+
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
102+
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
103+
code span.dt { color: #902000; } /* DataType */
104+
code span.dv { color: #40a070; } /* DecVal */
105+
code span.er { color: #ff0000; font-weight: bold; } /* Error */
106+
code span.ex { } /* Extension */
107+
code span.fl { color: #40a070; } /* Float */
108+
code span.fu { color: #06287e; } /* Function */
109+
code span.im { color: #008000; font-weight: bold; } /* Import */
110+
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
111+
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
112+
code span.op { color: #666666; } /* Operator */
113+
code span.ot { color: #007020; } /* Other */
114+
code span.pp { color: #bc7a00; } /* Preprocessor */
115+
code span.sc { color: #4070a0; } /* SpecialChar */
116+
code span.ss { color: #bb6688; } /* SpecialString */
117+
code span.st { color: #4070a0; } /* String */
118+
code span.va { color: #19177c; } /* Variable */
119+
code span.vs { color: #4070a0; } /* VerbatimString */
120+
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
121+
</style>
57122

58123
<style type="text/css">
59124

docs/1.3-grit-data-storage-space.html

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>1.3 GRIT data storage space | emLab Standard Operating Procedures</title>
88
<meta name="description" content="Standard operating procedures for emLab projects" />
9-
<meta name="generator" content="bookdown 0.45 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.46 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="1.3 GRIT data storage space | emLab Standard Operating Procedures" />
1212
<meta property="og:type" content="book" />
@@ -23,7 +23,7 @@
2323
<meta name="author" content="Environmental Markets Lab (emLab)" />
2424

2525

26-
<meta name="date" content="2025-12-01" />
26+
<meta name="date" content="2026-04-09" />
2727

2828
<meta name="viewport" content="width=device-width, initial-scale=1" />
2929
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -54,6 +54,71 @@
5454
<script src="assets/anchor-sections-1.1.0/anchor-sections.js"></script>
5555

5656

57+
<style type="text/css">
58+
html { -webkit-text-size-adjust: 100%; }
59+
pre > code.sourceCode { white-space: pre; position: relative; }
60+
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
61+
pre > code.sourceCode > span:empty { height: 1.2em; }
62+
.sourceCode { overflow: visible; }
63+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
64+
pre.sourceCode { margin: 0; }
65+
@media screen {
66+
div.sourceCode { overflow: auto; }
67+
}
68+
@media print {
69+
pre > code.sourceCode { white-space: pre-wrap; }
70+
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
71+
}
72+
pre.numberSource code
73+
{ counter-reset: source-line 0; }
74+
pre.numberSource code > span
75+
{ position: relative; left: -4em; counter-increment: source-line; }
76+
pre.numberSource code > span > a:first-child::before
77+
{ content: counter(source-line);
78+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
79+
border: none; display: inline-block;
80+
-webkit-touch-callout: none; -webkit-user-select: none;
81+
-khtml-user-select: none; -moz-user-select: none;
82+
-ms-user-select: none; user-select: none;
83+
padding: 0 4px; width: 4em;
84+
color: #aaaaaa;
85+
}
86+
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
87+
div.sourceCode
88+
{ }
89+
@media screen {
90+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
91+
}
92+
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
93+
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
94+
code span.at { color: #7d9029; } /* Attribute */
95+
code span.bn { color: #40a070; } /* BaseN */
96+
code span.bu { color: #008000; } /* BuiltIn */
97+
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
98+
code span.ch { color: #4070a0; } /* Char */
99+
code span.cn { color: #880000; } /* Constant */
100+
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
101+
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
102+
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
103+
code span.dt { color: #902000; } /* DataType */
104+
code span.dv { color: #40a070; } /* DecVal */
105+
code span.er { color: #ff0000; font-weight: bold; } /* Error */
106+
code span.ex { } /* Extension */
107+
code span.fl { color: #40a070; } /* Float */
108+
code span.fu { color: #06287e; } /* Function */
109+
code span.im { color: #008000; font-weight: bold; } /* Import */
110+
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
111+
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
112+
code span.op { color: #666666; } /* Operator */
113+
code span.ot { color: #007020; } /* Other */
114+
code span.pp { color: #bc7a00; } /* Preprocessor */
115+
code span.sc { color: #4070a0; } /* SpecialChar */
116+
code span.ss { color: #bb6688; } /* SpecialString */
117+
code span.st { color: #4070a0; } /* String */
118+
code span.va { color: #19177c; } /* Variable */
119+
code span.vs { color: #4070a0; } /* VerbatimString */
120+
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
121+
</style>
57122

58123
<style type="text/css">
59124

0 commit comments

Comments
 (0)