-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalvars.R
51 lines (39 loc) · 1.95 KB
/
globalvars.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
##############################################################################
## global variables
linewidth <- 2 # for various plots
# durations for showNotification
seconds <- 6 # default
warningseconds <- 12
errorseconds <- 12
invalidseconds <- NULL
timewarning <- 0.5 # minutes
timelimit <- 10.0 # minutes
availablecores <- min(24, parallel::detectCores())
defaultcores <- max(1, availablecores/2)
defaultresultsbtn <- c("summary", "other")
fittedresultsbtn <- c("summary", "predict", "derived", "other")
secrversion <- packageVersion('secr')
secryear <- substring(packageDate('secr'),1,4)
polygondetectors <- c("polygon", "polygonX", "transect", "transectX")
hazarddetectfn <- c("HHN", "HHR", "HEX", "HVP")
# for transfer to secrdesign
# secrdesignapp 1.2 and above reads parameters
designurl <- "https://www.stats.otago.ac.nz/secrdesignapp/"
## summary field names
summaryfields <- c("date", "time", "note", "traps", "captures", "filter",
"n", "r", "ndetectors", "noccasions", "usagepct", "maskbuffer", "masknrow",
"maskspace", "likelihood", "distribution", "model", "hcov",
"detectfn", "npar", "logLik", "AIC", "dAIC",
"D", "se.D", "RSE.D", "g0", "se.g0", "lambda0", "se.lambda0", "sigma",
"se.sigma", "z", "se.z", "k", "proctime", "method")
defaultfields1 <- c("date", "time", "note", "traps", "captures", "filter",
"n", "r", "ndetectors", "noccasions",
"usagepct", "maskbuffer", "masknrow", "maskspace",
"likelihood", "distribution", "model")
defaultfields2 <- c("detectfn",
"npar", "logLik", "AIC", "dAIC",
"D", "se.D", "RSE.D", "g0", "se.g0", "lambda0", "se.lambda0", "sigma", "se.sigma",
"k", "proctime")
fieldgroup1 <- 1:18
fieldgroup2 <- 19:37
##############################################################################