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

Allow empty exercise code chunks #712

Merged
merged 4 commits into from
Jul 7, 2022
Merged

Conversation

gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Jul 6, 2022

This PR relaxes the constraint introduced in #411 that exercises must contain at least one line (even empty).

Fixes #710

There is a little bit of wonkiness that can happen with empty chunks in knitr, and I've caught the most prevalent edge cases. Still, be careful that all chunk labels are unique, especially if you use empty exercise chunks.

@gadenbuie gadenbuie marked this pull request as ready for review July 6, 2022 19:53
@gadenbuie gadenbuie merged commit f378796 into main Jul 7, 2022
@gadenbuie gadenbuie deleted the feat/fill-empty-exercise-code branch July 7, 2022 15:52
@gadenbuie gadenbuie self-assigned this Jul 7, 2022
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.

Remove constraint that a chunk must have lines
1 participant