Skip to content

Commit

Permalink
modify app can not run on shiny-server on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jian-Kai Wang committed Jun 23, 2017
1 parent e61e453 commit bbb4776
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 28 deletions.
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ In the [sophia.dm](https://github.com/jiankaiwang/sophia.dm) project, we try and
### Field : Text Mining
---

* The Text Mining Infrastructure in R
* count-based analysis
* Count-based Text Mining Infrastructure in R [[demo](http://jkw.cloudapp.net:3838/tm/)]
* topics
* find terms on the frequency
* term associations
* document listing
* main reference
* Ingo Feinerer, Kurt Hornik and David Meyer. (2008) Text Mining Infrastructure in R. *Journal of Statistical Software* Volume 25, Issue 5.
* [demo](http://jkw.cloudapp.net:3838/)
* Ingo Feinerer, Kurt Hornik and David Meyer. (2008) Text Mining Infrastructure in R. *Journal of Statistical Software* Volume 25, Issue 5.
22 changes: 22 additions & 0 deletions tm/global.r
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#
# desc : anything necessary librarie or package should be loaded on global.r, not in server.r or ui.r
#

#install.packages("shiny")
#install.packages("plotly")
#install.packages("ggplot2")
#install.packages("DT")
#install.packages("RCurl")

library(shiny)
library(plotly)
library(ggplot2)
library(DT)
library(RCurl)

tryCatch({
source("tm/sophia.r")
}, warning = function(e) {
source("sophia.r")
})


# plain-text example
processFile = function(filepath) {
Expand Down
15 changes: 0 additions & 15 deletions tm/server.R
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
#install.packages("shiny")
#install.packages("plotly")
#install.packages("ggplot2")
#install.packages("DT")

library(shiny)
library(plotly)
library(ggplot2)
library(DT)

tryCatch({
source("tm/sophia.r")
}, warning = function(e) {
source("sophia.r")
})

#
# desc : get import type
Expand Down
10 changes: 1 addition & 9 deletions tm/ui.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#install.packages("shiny")
#install.packages("plotly")
#install.packages("RCurl")

library(shiny)
library(plotly)
library(RCurl)


# Define UI for application that draws a histogram
shinyUI(fluidPage(
Expand Down Expand Up @@ -36,7 +28,7 @@ shinyUI(fluidPage(
href = "http://jkw.cloudapp.net:3838/sophia.dm",
span(
tags$i(class="fa fa-power-off", `aria-hidden` = "true", class="text-gray"),
span("Demo", class="text-gray")
span("Entry", class="text-gray")
),
target = "_blank"
)
Expand Down

0 comments on commit bbb4776

Please sign in to comment.