-
Notifications
You must be signed in to change notification settings - Fork 57
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
Executing invisible code #23
Comments
This may not be exactly the solution to what you described, but perhaps still be helpful. I have uploaded a new RTutor version on Github where Can you check whether that works and is helpful for your problem? If users solve their problem set at home, continuing where one stopped last time was already possible by setting Note that you should still make each exercise self contained, however. If you want to continue with prepared data from a previous exercise, just add small chunk with a task or task_notest block at the beginning of that exercise which loads again the prepared data. If you repeatedly load a big data set in several exercises you can use memoization. See the chapter in the RTutor documentation here: |
Thank you very much for your fast response! I have tested it over the day and this change is indeed helpful. It does not work every time however and I was not able to pinpoint the problem exactly. I have two exercises: Exercise B has as the very first chunk a single read.csv statement outside a test chunk:
This is not executed correctly when skipping it and trying to edit a later chunk: Manually clicking on edit, then solution and then check marks this chunk as correctly solved. All subsequent chunks are solved automatically (e.g. when skipping chunk 2 and 3 and going directly to 4) |
Thanks for testing. There was indeed still a bug in my code. I have uploaded a new RTutor version. Can you check whether it now works fine? |
Thank you very much! The behavior is now as expected - both exercises can be started at later chunks. |
I am working on a multi-day course where the data set is iteratively cleaned and transformed with an online RTutor Shinyapp. I would like the participants to pause and continue reasonably often and use the exercises to break up the course into several small pieces.
It would be great if the participants could seamlessly pick up their work and and continue with the data set after the transformations. If I understand the manual correctly the proposed solution to do so is to include a chunk at the beginning of each exercise forcing the participant to go through all steps again.
A possible alternative could be to design save points (e.g. using Rdata files) and have the participant load them at the beginning of each exercise. I would prefer it however, if this would happen without the participant having to do so manually as this might prove bothersome if it has to be done a lot.
Is it possible to invisibly execute code when loading an exercise similar to an automatically loaded "include=FALSE" RMD chunk? I played with preknit chunks and tried to directly use RMD code but this did not work.
The text was updated successfully, but these errors were encountered: