-
Notifications
You must be signed in to change notification settings - Fork 240
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
Document that setting tutorial ID is required on RStudio Cloud #656
Comments
Adding the id and reinstalling the tutorial in the cloud project did not resolve the issue. |
That's unfortunate. Is the package with the tutorials available online and if so can you please share the repo URL? Can you also please share the output from |
oh wait, instead of output:
learnr::tutorial:
progressive: true
allow_skip: true
id: math350_lrt_1_introR
version: 1 # change the version when you want to invalidate past progress please try output:
learnr::tutorial:
progressive: true
allow_skip: true
tutorial:
id: math350_lrt_1_introR
version: 1 # change the version when you want to invalidate past progress |
Getting mixed results. It saved my code but resulted in a
Repo located at: https://github.com/norcalbiostat/ChicoLearnR Cloud Session Info
|
One thing that jumps out at me immediately about the session info is that there appears to be an issue with
I tried installing your package in a new RStudio Cloud project and the tutorials worked as expected. I don't see any obvious differences in the environment other than the missing In the case of the student's issues, one thing to try would be to reset the tutorial by clicking "Start Over" in the left navigation column when trying again. If there's any more information you could provide to help me debug, I'll be happy to take a further look. |
Looking through your session info one more time, I noticed that neither devtools::session_info("installed") |
I'm having trouble with copying the results of session info "installed" into an issue as markdown code chunk At one point her RAM bar was fully maxed, and it was frozen/spinning on the submit answer code. The start over button wouldn't even register. I think our last attempt was to have her delete and recopy the entire project. It was pretty fully borked and we're not sure why. I'll catch up with her this week and see if it's working.
|
From RStudio Community:
The tutorial progress storage is based on the tutorial's ID. If your tutorial doesn't explicitly set the ID, then a default value is chosen based on a few things. On RStudio Cloud, the port of the application path encoded in the URL where the user accesses the running tutorial. learnr will encorporate that port in the default tutorial identifier, but unfortunately this port number changes with each run.
Adding the following to the YAML frontmatter of those tutorials this will clear up problems for your users, even on RStudio Cloud:
Note that if you release a totally different version of the tutorial and want any one with stored progress to reset, you can change the version value (which can be an arbitrary string).
The text was updated successfully, but these errors were encountered: