rstudio / learnr

Interactive Tutorials with R Markdown
https://pkgs.rstudio.com/learnr
Apache License 2.0
713 stars 239 forks source link

Cannot run learnr tutorial from within an R Studio Cloud project #405

Open tombeesley opened 4 years ago

tombeesley commented 4 years ago

A tutorial I have created is running fine when launched locally, but running the same setup in R Studio Cloud produces this error:

Error in value[3L] : Couldn't normalize path in addResourcePath, with arguments: prefix = 'mathjax-local'; directoryPath = '/usr/lib/rstudio-server/resources/mathjax-26'

I get the same error when I try to run the built in learnr tutorials, e.g., learnr::run_tutorial(package = "learnr", name = "ex-data-basics")

Seems to be the same issue seen here: https://github.com/rstudio/learnr/issues/208

but I tried installing learnr from github and it didn't help. Any ideas?

wch commented 4 years ago

Have you tried clearing the prerendered cache?

image

Or you can run:

rmarkdown::shiny_prerendered_clean('Untitled/Untitled.Rmd')
tombeesley commented 4 years ago

I am not trying to knit this from project files. This is a learnr tutorial within a package. Package installs and tutorials run fine locally, but not in R Studio Cloud.

pm0kjp commented 4 years ago

I am seeing similar behavior on an RStudio server I access via a URL.

fbriody commented 4 years ago

I had problems with learnr tutorial on shinyaps.io. Stats class with about 10 connections stalled out. Yesterday and today. Possibly my mistake since this was my first attempt at teaching via learner and shinyapps.io.