-
Notifications
You must be signed in to change notification settings - Fork 0
/
requirements.R
74 lines (50 loc) · 1.73 KB
/
requirements.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
## title: "RA Primer Draft"
## author: "Ryan Yost"
## date: "March, 25, 2020"
##
## ----libraries and other settings, include=FALSE-------------------------
options(java.parameters = "-Xmx8g" ) # Increase memory size for JAVA to 8 GB
############ checking Java ##############
# check and set version of Java ; taking the 64bit out of matlab
setJavaBitVersion <- function(){
if (R.Version()$arch == "x86_64") {
Sys.setenv(JAVA_HOME = "C:/Program Files/MatLab/R2018b/sys/java/jre/win64/jre")
}
else {
Sys.setenv(JAVA_HOME = "C:/Program Files (x86)/Java/jre8/bin")
}
Sys.getenv("JAVA_HOME")
}
# Run It
#setJavaBitVersion()
############ imf_dataTools ##############
# imf datatools stuff, leaving as is
library(reticulate)
#setwd("C:/R/R-3.6.3/library/imf_datatools")
#sys <- import('sys')
#sys$path[length(sys$path) + 1] <- "."
#install.packages("imf_datatools"), this is the internal API
imf_datatools <- import("imf_datatools")
# data collector
#dataCollector <- import("datacollector")
############ Other Packages ##############
### Data Cleaning ###
# reading and writing xlsx
library(xlsx)
# reshaping data, uses melt function the make long data
library(reshape)
#using to make row names a column
library(dplyr)
# used to work with dates
library(lubridate)
### Graphic Libraries ###
#charts,
library(ggplot2)
library(scales)
library(gridExtra)
# tables
library(knitr)
library(tidyverse)
library(kableExtra)
library(tableHTML)
library(tinytex)