forked from PredictiveEcology/LandWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04-paths.R
More file actions
33 lines (29 loc) · 1.23 KB
/
04-paths.R
File metadata and controls
33 lines (29 loc) · 1.23 KB
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
################################################################################
## Set paths for each part of the simulation
################################################################################
## preamble
paths1 <- list(
## use same cachePath for all data-prep steps before dynamic simulation
cachePath = file.path("cache", "dataPrepGIS", "preamble"),
modulePath = "m", # short name because shinyapps.io can't handle longer than 100 characters
inputPath = "inputs",
outputPath = file.path("outputs", runName)
)
## species layers
paths2 <- list(
## use same cachePath for all data-prep steps before dynamic simulation
cachePath = file.path("cache", "dataPrepGIS", "speciesLayers"),
modulePath = "m", # short name because shinyapps.io can't handle longer than 100 characters
inputPath = "inputs",
outputPath = file.path("outputs", runName)
)
## main simulation
paths3 <- list(
## NOTE: use separate cachePath for each dynamic simulation
cachePath = file.path("cache", runName),
modulePath = "m", # short name because shinyapps.io can't handle longer than 100 characters
inputPath = "inputs",
outputPath = file.path("outputs", runName)
)
## tile path (same for all)
tilePath <- file.path(paths1$outputPath, "tiles")