This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Ctrl+Shift+Enter.
db
if("rJava" %in% installed.packages("rJava") == FALSE)install.packages("rJava")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rJava_0.9-10.zip'
Content type 'application/zip' length 826966 bytes (807 KB)
downloaded 807 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
if("rJava" %in% installed.packages("rJava") == FALSE)install.packages("rJava")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rJava_0.9-10.zip'
Content type 'application/zip' length 826966 bytes (807 KB)
downloaded 807 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
library(rJava)
library(rJava)
if("DBI" %in% installed.packages("DBI") == FALSE)install.packages("DBI")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/DBI_1.0.0.zip'
Content type 'application/zip' length 888951 bytes (868 KB)
downloaded 868 KB
package ‘DBI’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
if("DBI" %in% installed.packages("DBI") == FALSE)install.packages("DBI")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/DBI_1.0.0.zip'
Content type 'application/zip' length 888951 bytes (868 KB)
downloaded 868 KB
package ‘DBI’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
library(DBI)
if("DBI" %in% installed.packages("DBI") == FALSE)install.packages("DBI")
Error in install.packages : Updating loaded packages
library(DBI)
if("RJDBC" %in% installed.packages("RJDBC") == FALSE)install.packages("RJDBC")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/RJDBC_0.2-7.1.zip'
Content type 'application/zip' length 88016 bytes (85 KB)
downloaded 85 KB
package ‘RJDBC’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
library(RJDBC)
if("XML" %in% installed.packages("XML") == FALSE)install.packages("XML")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/XML_3.98-1.16.zip'
Content type 'application/zip' length 4602444 bytes (4.4 MB)
downloaded 4.4 MB
package ‘XML’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpOUmDyQ\downloaded_packages
if("XML" %in% installed.packages("XML") == FALSE)install.packages("XML")
Restarting R session...
string
if("dplyr" %in% installed.packages("dplyr") == FALSE)install.packages("dplyr")
library(dplyr)
if("data.table" %in% installed.packages("data.table") == FALSE)install.packages("data.table")
library(data.table)
if("stringi" %in% installed.packages("stringi") == FALSE)install.packages("stringi")
library(stringi)
if("stringr" %in% installed.packages("stringr") == FALSE)install.packages("stringr")
library(stringr)
if("plyr" %in% installed.packages("plyr") == FALSE)install.packages("plyr")
library(plyr)
tm
if("KoNLP" %in% installed.packages("KoNLP") == FALSE)install.packages("KoNLP")
library(KoNLP)
if("tm" %in% installed.packages("tm") == FALSE)install.packages("tm")
library(tm)
if("wordcloud" %in% installed.packages("wordcloud") == FALSE)install.packages("wordcloud")
library(wordcloud)
html
if("rvest" %in% installed.packages("rvest") == FALSE)install.packages("rvest")
library(rvest)
if("shiny" %in% installed.packages("shiny") == FALSE)install.packages("shiny")
library(shiny)
chart
if("ggplot2" %in% installed.packages("ggplot2") == FALSE)install.packages("ggplot2")
library(ggplot2)
if("RColorBrewer" %in% installed.packages("RColorBrewer") == FALSE)install.packages("RColorBrewer")
library(RColorBrewer)
if("reshape" %in% installed.packages("reshape") == FALSE)install.packages("reshape")
library(reshape)
font
if("extrafont" %in% installed.packages("extrafont") == FALSE)install.packages("extrafont")
library(extrafont)
ga
if("RGA" %in% installed.packages("RGA") == FALSE)install.packages("RGA")
library(RGA)
if("ggmap" %in% installed.packages("ggmap") == FALSE)install.packages("ggmap")
library(ggmap)
if("googleVis" %in% installed.packages("googleVis") == FALSE)install.packages("googleVis")
library(googleVis)
sessionInfo()
update.packages()
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.