copy all rlog files to the temp directory

This commit is contained in:
Barret Schloerke
2018-05-31 13:53:58 -04:00
parent 5394a68314
commit bf0c3d42db

View File

@@ -74,6 +74,14 @@ renderReactLog <- function(sessionToken = NULL, time = TRUE) {
html <- sub("__TIME__", paste0("\"", time, "\""), html, fixed=TRUE)
file <- tempfile(fileext = ".html")
writeLines(html, file)
# copy js and style files
file.copy(
system.file("www/rlog", package="shiny"),
dirname(file),
recursive = TRUE
)
return(file)
}