-
Notifications
You must be signed in to change notification settings - Fork 2
/
02a-user-config.R
89 lines (82 loc) · 2.48 KB
/
02a-user-config.R
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
## user + machine specific configs
config.user <- switch(
.user,
## Alex ------------------------------------------------------------------------------------------
achubaty = list(
args = list(
cloud = list(
googleUser = "[email protected]",
useCloud = FALSE
),
notifications = list(
slackChannel = "@alex.chubaty"
)
),
options = list(
reproducible.cacheSaveFormat = "qs",
reproducible.conn = SpaDES.config::dbConnCache("postgresql"),
reproducible.useTerra = TRUE, ## TODO: add to config
spades.memoryUseInterval = FALSE, ## TODO: temporary until callr/future cache bug fixed
spades.useRequire = FALSE
),
params = list(
LandWeb_summary = list(
.clInit = function() {
## NOTE: everything here has to be able to run from clean R session
if (file.exists("LandWeb.Renviron")) readRenviron("LandWeb.Renviron") ## database credentials
try(options(reproducible.conn = NULL)) ## ensure it's not set
options(reproducible.conn = SpaDES.config::dbConnCache("postgresql"))
return(invisible(NULL))
},
upload = FALSE ## TODO: use TRUE once `uploadTo` specified per study area
)
),
paths = list(
scratchPath = switch(.nodename,
`larix.for-cast.ca` = file.path("/tmp/scratch", basename(prjDir)),
file.path("/mnt/scratch", .user, basename(prjDir)))
)
),
## Eliot -----------------------------------------------------------------------------------------
emcintir = list(
args = list(
cloud = list(
googleUser = "[email protected]",
useCloud = FALSE
),
notifications = list(
slackChannel = "@eliotmcintire"
)
),
params = list(
.plotInitialTime = NA
),
paths = list(
inputPaths = "~/data" ## aka dataCachePath
)
),
## docker (user rstudio) -------------------------------------------------------------------------
rstudio = list(
args = list(
cloud = list(
googleUser = "", ## TODO
useCloud = FALSE
),
notifications = list(
slackChannel = "" ## TODO
)
),
paths = list(
cachePath = "cache_sqlite"
)
),
## default (i.e, no changes) ---------------------------------------------------------------------
list(
args = list(
cloud = list(
googleUser = "",
useCloud = FALSE
)
)
)
)