Skip to content

Commit b1fd8b0

Browse files
committed
Merge pull request #182 from rstudio/bugfix/static-shiny-slides
fix #180: support cached ioslides presentations on Shiny Server
2 parents 7053269 + 31b35c3 commit b1fd8b0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/shiny.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ rmarkdown_shiny_server <- function(dir, encoding, auto_reload, render_args) {
184184
output_file = output_dest,
185185
output_dir = dirname(output_dest),
186186
output_options = output_opts,
187-
intermediates_dir = tempdir(),
187+
intermediates_dir = dirname(output_dest),
188188
runtime = "shiny"),
189189
render_args)
190190
result_path <- shiny::maskReactiveContext(do.call(render, args))
@@ -290,7 +290,7 @@ rmd_cached_output <- function (input, encoding) {
290290
cacheable <- TRUE
291291
output_key <- digest::digest(paste(input, file.info(input)[4]),
292292
algo = "md5", serialize = FALSE)
293-
output_dest <- paste(file.path(dirname(tempdir()), "rmarkdown",
293+
output_dest <- paste(file.path(dirname(tempdir()), "rmarkdown", output_key,
294294
paste("rmd", output_key, sep = "_")),
295295
"html", sep = ".")
296296

0 commit comments

Comments
 (0)