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

Add second level of quick restore that can pull from tutorial storage if available #794

Merged
merged 6 commits into from
Sep 27, 2023

Conversation

gadenbuie
Copy link
Member

This adds a second level of "quick restore" that will restore the exercise output from tutorial storage, if available, but will otherwise avoid re-evaluating submitted exercise code when starting up a tutorial.

Ideally, this increases start up time while also finding a balance of restoring saved output, if possible.

This can be set via ~/.Renviron

# Quick restore level 1 (fast as possible)
TUTORIAL_QUICK_RESTORE=1

# Quick restore level 2 (middle ground)
TUTORIAL_QUICK_RESTORE=2

or via ~/.Rprofile or in the R process:

# Quick restore level 1 (fast as possible)
Sys.setenv("TUTORIAL_QUICK_RESTORE" = "1")
options("tutorial.quick_restore" = TRUE)
options("tutorial.quick_restore" = "1")

# Quick restore level 2 (middle ground)
Sys.setenv("TUTORIAL_QUICK_RESTORE" = "2")
options("tutorial.quick_restore" = "2")

# Disable quick restore (default)
Sys.setenv("TUTORIAL_QUICK_RESTORE" = "0")
options("tutorial.quick_restore" = FALSE)
options("tutorial.quick_restore" = "0")

@gadenbuie gadenbuie marked this pull request as ready for review September 27, 2023 15:13
@gadenbuie gadenbuie merged commit 58aa962 into rstudio:main Sep 27, 2023
9 of 10 checks passed
@gadenbuie gadenbuie deleted the quick-restore-2 branch September 27, 2023 19:26
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 this pull request may close these issues.

1 participant