forked from kevmccullough/ODSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_Setup.R
60 lines (50 loc) · 1.58 KB
/
0_Setup.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
#' Title: Intro: R Setup
#' Purpose: Install packages
#' Author: Ted Kwartler
#' email: [email protected]
#' License: GPL>=3
#' Date: 2017-10-24
#'
# Download the zip file repo here: https://github.com/kwartler/ODSC or
# git clone https://github.com/kwartler/ODSC.git
# Get CRAN packages
libs<-c('stringi', #1_Keyword_Scanning.R
'tm', #2_Cleaning and Frequency Count.R
'qdap', #3_Dendrogram.R
'ggplot2',
'ggthemes',
'dendextend',
'wordcloud', #4_Simple_Wordcloud.R & #5_Other_Wordclouds.R
'RColorBrewer',
'tidytext', #6_TidyText_Sentiment.R
'treemap', #7_Topic_Modeling_Sentiment.R
'portfolio',
'GuardianR',
'lda', #previous ODSC workshops used library(topicmodels)
'LDAvis',
'dplyr',
'servr',
'SnowballC',
'openNLP', #8_Open_Langugage_Processingv3.R
'jsonlite', #instruction_newsAPI.R
'pbapply',
'wordcloud2', #instruction_htmlWidgets.R
'rbokeh',
'radarchart',
'stringr',
'flexdashboard', #blank_dashboard.Rmd
'rmarkdown', #cronJob.R
'httr')
# Get most of the libs
install.packages(libs)
# Problems with install qdap which requires rJava may be fixed with
# https://github.com/hannarud/r-best-practices/wiki/Installing-RJava-(Ubuntu)
# WINDOWS Scheduler
install.packages('taskscheduleR')
# LINUX Scheduler
install.packages('cronR')
# Get a NLP Model for use w/openNLP
install.packages('openNLPmodels.en',
repos = "http://datacube.wu.ac.at/",
type = "source")
# End