-
Notifications
You must be signed in to change notification settings - Fork 0
/
manulaunching.R
81 lines (73 loc) · 1.93 KB
/
manulaunching.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
if(!require(remotes)){
install.packages("remotes")
require(remotes)
}
if(!require(devtools)){
install.packages("devtools")
require(devtools)
}
if(!require(tinytex)){
install.packages("tinytex")
require(tinytex)
}
if(!require(geoflow)){
remotes::install_github("eblondel/geoflow")
require(geoflow)}
if(!require(RSQLite)){
install.packages("RSQLite")
require(RSQLite)
}
if(!require(RPostgreSQL)){
install.packages("RPostgreSQL")
require(RPostgreSQL)
}
if(!require(RPostgres)){
install.packages("RPostgres")
require(RPostgres)
}
if(!require(googledrive)){
install.packages("googledrive")
require(googledrive)
}
if(!require(DBI)){
install.packages("DBI")
require(DBI)
}
if(!require(gsheet)){
install.packages("gsheet")
require(gsheet)
}
if(!require(data.table)){
install.packages("data.table")
require(data.table)
}
if(!require(plotrix)){
install.packages("plotrix")
require(plotrix)
}
if(!require(rgeos)){
install.packages("rgeos")
require(rgeos)
}
if(!require(rtunaatlas)){
install_github("eblondel/rtunaatlas")
require(rtunaatlas)
}
if(!require(rpostgis)){
install_github("rpostgis")
require(rpostgis)
}
if(!require(janitor)){
install.packages("janitor")
require(janitor)
}
executeWorkflow("manulaunching/tunaatlas_qa_dbmodel+codelists.json")#works
executeWorkflow("manulaunching/tunaatlas_qa_mappings.json")#works
executeWorkflow("manulaunching/tunaatlas_qa_datasets_iccat.json") #do not load in db
executeWorkflow("manulaunching/tunaatlas_qa_datasets_ccsbt.json")#works
executeWorkflow("manulaunching/tunaatlas_qa_datasets_iattc.json")#works
# initWorkflow("manulaunching/tunaatlas_qa_datasets_iattc.json")#works
# config <- initWorkflow("manulaunching/tunaatlas_qa_datasets_iattc.json")
executeWorkflow("manulaunching/tunaatlas_qa_datasets_iotc.json")#works
executeWorkflow("manulaunching/tunaatlas_qa_datasets_wcpfc.json")#works
executeWorkflow("manulaunching/tunaatlas_qa_global_datasets_catch.json")