learnr icon indicating copy to clipboard operation
learnr copied to clipboard

Cannot run learnr tutorial from within an R Studio Cloud project

Open tombeesley opened this issue 5 years ago • 4 comments

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?

tombeesley avatar Jul 23 '20 14:07 tombeesley

Have you tried clearing the prerendered cache?

image

Or you can run:

rmarkdown::shiny_prerendered_clean('Untitled/Untitled.Rmd')

wch avatar Jul 23 '20 14:07 wch

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.

tombeesley avatar Jul 30 '20 10:07 tombeesley

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

pm0kjp avatar Sep 18 '20 17:09 pm0kjp

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.

fbriody avatar Sep 18 '20 21:09 fbriody