-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ee8aa2b
commit 720a1f1
Showing
4 changed files
with
30 additions
and
0 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 |
---|---|---|
|
@@ -12,3 +12,6 @@ tests/testthat/*.pdf | |
|
||
# Shiny bookmarks | ||
shiny_bookmarks/ | ||
|
||
# Ignore log files | ||
logs/ |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ Imports: | |
shinyWidgets, | ||
shinyjs, | ||
shinyFeedback, | ||
shinylogs, | ||
sever, | ||
fresh, | ||
DT, | ||
|
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
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,20 @@ | ||
# This maintenance script simply deletes all files in the log folder of the app | ||
# To run simply do Rscript inst/rm_logs.R | ||
# --- # | ||
|
||
library(assertthat) | ||
|
||
# Get all log files | ||
ll <- list.files("logs/", full.names = TRUE) | ||
ll <- ll[assertthat::has_extension(ll, "rds")] | ||
|
||
# No logs found | ||
if(length(ll)==0){ | ||
message("No logs found...") | ||
} else { | ||
# Message | ||
message("Found a total of ", length(ll), " log files. Deleting them all?") | ||
if(utils::askYesNo(msg = "Delete?")){ | ||
sapply(ll, file.remove) | ||
} | ||
} |