Skip to content

Instantly share code, notes, and snippets.

@ishida-m
Last active August 29, 2015 14:26
Show Gist options
  • Select an option

  • Save ishida-m/89ef245b2313e6b8e351 to your computer and use it in GitHub Desktop.

Select an option

Save ishida-m/89ef245b2313e6b8e351 to your computer and use it in GitHub Desktop.
forCheck.R
## you need Administrative privileges to instaill following libraries # if(!require (devtools)) {}
install.packages("devtools",dependencies = TRUE)
install.packages("rmarkdown",dependencies = TRUE)
install.packages("ggplot2",dependencies = TRUE)
install.packages("dplyr",dependencies = TRUE)
install.packages("shiny",dependencies = TRUE)
install.packages("ggmap",dependencies = TRUE)
install.packages("twitteR",dependencies = TRUE)
install.packages("Rcpp",dependencies = TRUE)
install.packages("stringr",dependencies = TRUE)
install.packages("igraph",dependencies = TRUE)
install.packages("wordcloud",dependencies = TRUE)
install.packages("leaflet",dependencies = TRUE)
# you need MeCab on your PC. Install it then run the next line
install.packages("RMeCab", repos = "http://rmecab.jp/R")
# test
library (RMeCab)
x <- readLines("http://web.ias.tokushima-u.ac.jp/linguistik/yukiguni.txt")
x <- iconv(x, from = "CP932")
tmp <- unlist (RMeCabC(x))
ifelse (length(tmp) > 0 & nchar(tmp[1]) > 1, TRUE, FALSE)
## END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment