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

Skipping back to first page #3

Closed
pmcharrison opened this issue Aug 5, 2018 · 1 comment

Comments

@pmcharrison
Copy link
Owner

commented Aug 5, 2018

Currently an error is produced when trying to skip back to the first page in the test in the on_complete() function.

@pmcharrison

This comment has been minimized.

Copy link
Owner Author

commented Nov 7, 2018

Example:

library(psychTestR)
elts <- list(
  one_button_page("Begin"),
  one_button_page("Return to beginning?", button_text = "Yes",
                  on_complete = function(state, ...) {
                    skip_n_pages(state, -2L)
                  }),
  final_page("End")
)
make_test(elts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.