Last active
August 29, 2015 14:26
-
-
Save ishida-m/89ef245b2313e6b8e351 to your computer and use it in GitHub Desktop.
forCheck.R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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