-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.R
More file actions
70 lines (49 loc) · 1.92 KB
/
Copy pathconfig.R
File metadata and controls
70 lines (49 loc) · 1.92 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
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
# ###########################
# CONFIG: parameters affecting processing
# ###########################
## These control whether the external data is downloaded and processed.
process_raw <- TRUE
download_raw <- TRUE
## This pins the date of the to-be-processed file
extractday <- "2025-12-07"
## These define the start (and end) dates for processing of data
firstday <- "2024-12-01"
lastday <- "2025-11-30"
# ###########################
# CONFIG: define paths and filenames for later reference
# ###########################
# Change the basepath depending on your system
basepath <- here::here()
setwd(basepath)
# for Jira stuff
jiraconf <- file.path(basepath,"data","confidential")
# for local processing
jiraanon <- file.path(basepath,"data","anon")
jirameta <- file.path(basepath,"data","metadata")
# local
images <- file.path(basepath, "images" )
tables <- file.path(basepath, "tables" )
programs <- file.path(basepath,"programs")
temp <- file.path(basepath,"data","temp")
for ( dir in list(images,tables,programs,temp)){
if (file.exists(dir)){
} else {
dir.create(file.path(dir))
}
}
# filenames
issue_history.prefix <- "issue_history_"
manuscript.lookup <- "mc-lookup"
manuscript.lookup.rds <- file.path(jiraconf,paste0(manuscript.lookup,".RDS"))
assignee.lookup <- "assignee-lookup"
assignee.lookup.rds <- file.path(jiraconf,paste0(assignee.lookup,".RDS"))
# this is the augmented confidential file with all the non-confidential variables
jira.conf.plus.base <- "jira.conf.plus"
jira.conf.plus.rds <- file.path(jiraconf,paste0(jira.conf.plus.base,".RDS"))
jira.conf.names.csv <- "jira_conf_names.csv"
# public files
members.txt <- file.path(jiraanon,"replicationlab_members.txt")
jira.anon.base <- "jira.anon"
jira.anon.rds <- file.path(jiraanon,paste0(jira.anon.base,".RDS"))
jira.anon.csv <- file.path(jiraanon,paste0(jira.anon.base,".csv"))
#mc.lookup.rds <- file.path(jiraconf,"mc-lookup.RDS")