Skip to content

Executing invisible code #23

@MartinKies

Description

@MartinKies

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions