Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
942 additions
and
731 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Twitterytics-Shiny | ||
======================== | ||
|
||
settings.txt -- settings for the app: 1) hashtag, 2) Google Spreadsheet key, 3) timezone. |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
Oops, something went wrong.