-
Notifications
You must be signed in to change notification settings - Fork 6
/
global.R
45 lines (42 loc) · 801 Bytes
/
global.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
library(shiny)
library(DT)
library(stringr)
library(dplyr)
library(RMySQL)
library(pool)
library(DBI)
library(foreach)
library(zip)
library(shinyjs)
source('locuscompare.R')
source('config/config.R')
library(digest)
library(utils)
library(googlesheets)
library(promises)
library(future)
plan(multiprocess)
library(mailR)
library(shinycssloaders)
library(googledrive)
library(manhattan)
library(shinythemes)
# Variables:
locuscompare_pool = dbPool(
RMySQL::MySQL(),
dbname = "locuscompare",
host = aws_host,
username = aws_username,
password = aws_password,
minSize = 4
)
onStop(function() {
poolClose(locuscompare_pool)
})
args = list(
drv = RMySQL::MySQL(),
dbname = "locuscompare",
host = aws_host,
username = aws_username,
password = aws_password
)