Skip to content

Feature request: Run only selected lines of an exercise chunk #512

@petzi53

Description

@petzi53

Many times I have seen exercise chunks where a complex task is broken down into several steps. The code snippets consist of some prefilled parts and some parts with underscores to be substituted by the student's code. The following illustrating screenshot is taken from a lesson of the OpenIntro project.

task-with-several-steps

In those cases, where a task is broken down into several steps, it would be beneficial from an educational perspective when students could experiment and see if a part of their solution already works. At the moment, students have to cut those parts not ready for evaluation, try their solution, and then continue their work with pasting the code snippet from the clipboard to the exercise environment.

An alternative could be to provide students with an extra empty exercise chunk as a sandbox to try their experiments.

But the easiest solution would be to run just a part of the exercise chunk as possible in RStudio by selecting code lines.

I do not know if this feature request could be implemented (easily), but it would provide a great enhancement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions