-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_settings.R
More file actions
44 lines (40 loc) · 1.13 KB
/
init_settings.R
File metadata and controls
44 lines (40 loc) · 1.13 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
dotR <- file.path(Sys.getenv("HOME"), ".R")
if (!file.exists(dotR)) dir.create(dotR)
M <- file.path(dotR, ifelse(.Platform$OS.type == "windows", "Makevars.win", "Makevars"))
if (!file.exists(M)) file.create(M)
cat("\nCXX14FLAGS=-O3 -march=native -mtune=native",
if( grepl("^darwin", R.version$os)) "CXX14FLAGS += -arch x86_64 -ftemplate-depth-256" else
if (.Platform$OS.type == "windows") "CXX11FLAGS=-O3 -march=native -mtune=native" else
"CXX14FLAGS += -fPIC",
file = M, sep = "\n", append = TRUE)
require(lobstr)
require(ggridges)
require(loo)
require(rethinking)
require(tidyr)
require(tidyverse)
require(dplyr)
require(ggplot2)
require(tidyr)
require(tidybayes)
require(bayesplot)
require(brms)
require(broom)
library(lubridate)
require(imputeTS)
require(smooth)
require(Mcomp)
require(hash)
require(rlist)
require(feather)
require(modelr)
require(gridExtra)
require(scales)
require(ggrepel)
require(posterior)
require(cmdstanr)
options(warnPartialMatchDollar = TRUE)
Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = "true")
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
options(stringsAsFactors = FALSE)