Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
IMPETUS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SERG
IMPETUS
Commits
792d271b
Commit
792d271b
authored
4 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
switched to here(); amended child file names
parent
19362e34
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
impetusModel/impetusModel.Rmd
+11
-15
11 additions, 15 deletions
impetusModel/impetusModel.Rmd
with
11 additions
and
15 deletions
impetusModel/impetusModel.Rmd
+
11
−
15
View file @
792d271b
...
...
@@ -21,7 +21,7 @@ output:
keep_md: yes
toc: yes
toc_depth: 4
bibliography:
..
/bibliography.bib
bibliography:
'`r paste0(here::here(), "
/bibliography.bib
")`'
---
```{r knitrSetUp, include=FALSE}
knitr::opts_chunk$set(echo = TRUE) # echo code so reader can see what is happening
...
...
@@ -35,7 +35,6 @@ knitr::opts_chunk$set(tidy = TRUE) # tidy up code in case echo = TRUE
```{r codeSetup, include=FALSE}
# Housekeeping ----
rm(list=ls(all=TRUE)) # remove all objects from workspace
# Set start time ----
startTime <- proc.time()
...
...
@@ -48,18 +47,9 @@ userName <- sysInfo[[7]]
# default code location - needed to load functions & parameters correctly so
# has to be run here and not in the functions file as we can't find the functions file without it!
# use Mikey Harper's code to work out where we are
# only problem with this is that if you print projLoc this will reveal the full path (including username) in any output document
mh_findParentDirectory <- function(Parent){
directory <-getwd()
while(basename(directory) != Parent){
directory <- dirname(directory)
library(here)
}
return(directory)
}
projLoc <- mh_findParentDirectory("IMPETUS")
projLoc <- here::here()
# Functions ----
print(paste0("Loading functions from ", projLoc,"/impetusFunctions.R"))
...
...
@@ -202,9 +192,15 @@ The final data output consists of 1800 household records for each month of each
# Construct historical consumption levels for each month
```
# Add Water Efficiency uptake
```{r Run WE Model, child = "addBaselineWE.Rmd"}
# Run water efficiency model
```
# Drought Response Water Efficiency Model
```{r Run Drought Model, child = "applyDrought
WEm
odel.Rmd"}
```{r Run Drought Model, child = "applyDrought
M
odel.Rmd"}
# Run water efficiency model
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment