-
Notifications
You must be signed in to change notification settings - Fork 15
/
util-init.R
69 lines (56 loc) · 2.54 KB
/
util-init.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
## This file is part of coronet, which is free software: you
## can redistribute it and/or modify it under the terms of the GNU General
## Public License as published by the Free Software Foundation, version 2.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
##
## Copyright 2016-2019 by Claus Hunsen <[email protected]>
## Copyright 2017 by Christian Hechtl <[email protected]>
## Copyright 2017 by Raphael Nömmer <[email protected]>
## Copyright 2017 by Sofie Kemper <[email protected]>
## Copyright 2017 by Felix Prasse <[email protected]>
## Copyright 2019 by Klara Schlüter <[email protected]>
## Copyright 2019-2020 by Anselm Fehnker <[email protected]>
## Copyright 2021 by Johannes Hostert <[email protected]>
## All Rights Reserved.
## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
## System variables and R settings -----------------------------------------
## * Locale ----------------------------------------------------------------
if (Sys.info()['sysname'] == "Windows") {
Sys.setlocale(category = "LC_ALL", locale = "english-us")
} else {
Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")
}
## * Universal time zone ---------------------------------------------------
TIMEZONE = "UTC"
Sys.setenv(TZ = TIMEZONE)
## * Other stuff -----------------------------------------------------------
options(stringsAsFactors = FALSE)
## for proper initialization of the package 'logging', the base package 'methods' needs
## to be attached properly (see #153)
library(methods)
## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
## Sourcing library files --------------------------------------------------
source("util-misc.R")
source("util-conf.R")
source("util-read.R")
source("util-data.R")
source("util-data-misc.R")
source("util-networks.R")
source("util-split.R")
source("util-motifs.R")
source("util-bulk.R")
source("util-plot.R")
source("util-core-peripheral.R")
source("util-networks-metrics.R")
source("util-networks-covariates.R")
source("util-plot-evaluation.R")
source("util-networks-misc.R")
source("util-tensor.R")