Skip to content

Commit

Permalink
clean up for first commit to github
Browse files Browse the repository at this point in the history
  • Loading branch information
meefen committed Jul 2, 2013
1 parent b1813a1 commit b70c951
Show file tree
Hide file tree
Showing 25 changed files with 942 additions and 731 deletions.
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
Twitterytics-Shiny
========================

settings.txt -- settings for the app: 1) hashtag, 2) Google Spreadsheet key, 3) timezone.
Binary file removed data/aera13.Rda
Binary file not shown.
356 changes: 0 additions & 356 deletions data/aera13.csv

This file was deleted.

Binary file modified data/communities.Rda
Binary file not shown.
Binary file modified data/corpus.Rda
Binary file not shown.
Binary file added data/df.Rda
Binary file not shown.
518 changes: 518 additions & 0 deletions data/df.csv

Large diffs are not rendered by default.

Binary file modified data/sentiments.Rda
Binary file not shown.
Binary file modified data/snaGraph.Rda
Binary file not shown.
Binary file modified data/snaMatrix.Rda
Binary file not shown.
Binary file added data/urls.Rda
Binary file not shown.
22 changes: 15 additions & 7 deletions repeat_pre.R
@@ -1,12 +1,20 @@
library(tcltk2)

## function to run preprocessing.R
RepeatPre <- function() {
source("preprocessing.R")
source("utils/preprocessing.R")
cat("RUN preprocessing.R")
}

tclTaskSchedule(10000, RepeatPre(), id = "preprocessing", redo = TRUE)
Sys.sleep(2)

tclTaskGet() # List all (non hidden) tasks
tclTaskDelete(NULL) # finally, delete all pending tasks
# ## solution 1
# library(tcltk2)
# tclTaskSchedule(120000, RepeatPre(), id = "preprocessing", redo = TRUE)
# Sys.sleep(2)
# #tclTaskGet() # List all (non hidden) tasks
# #tclTaskDelete(NULL) # finally, delete all pending tasks


## solution 2
repeat {
RepeatPre()
Sys.sleep(time = 3600) # to stop execution for 5 sec
}
Empty file added restart.txt
Empty file.

0 comments on commit b70c951

Please sign in to comment.