Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiny_prerendered issue: second time call says file.exists(dep$src$file) : invalid 'file' #2307

Closed
floswald opened this issue Jan 18, 2019 · 2 comments · Fixed by rstudio/rmarkdown#1562
Assignees

Comments

@floswald
Copy link

floswald commented Jan 18, 2019

i have a recurring issue with learnr tutorial that runs as a shiny app. here's the yaml

---
title: "Chapter 2 Tutorial"
output: 
  learnr::tutorial:
    highlight: pygments
    ace_theme: textmate
runtime: shiny_prerendered
---

you should be able to reproduce the error by installing my package and launching the tutorial twice. the underlying launcher is rmarkdown::run(file = rmds[1]) where rmds is a vector of filenames.

reproduce:

library(devtools)
install_github("ScPoEcon/ScPoEconometrics")
runTutorial("chapter2")  # works for me
# kill tutorial
runTutorial("chapter2")  # says 

> runTutorial("chapter2")
 Error in file.exists(dep$src$file) : invalid 'file' argument 
6.
file.exists(dep$src$file) 
5.
shiny_prerendered_prerender(input_rmd, rendered_html, output_dir, 
    encoding, prerender_option) 
4.
shiny_prerendered_html(input_rmd, encoding, render_args) 
3.
shiny_prerendered_app(target_file, encoding = encoding, render_args = render_args) 
2.
rmarkdown::run(file = rmds[1]) at runexample.R#29
1.
runTutorial("chapter2") 

@wlinInspire
Copy link

I actually have the same issue

@schloerke
Copy link
Collaborator

Set to be included for rmarkdown v1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants