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

lab report template leading to errors: duplicate chunk labels #110

Open
mamcisaac opened this issue Nov 3, 2022 · 0 comments
Open

lab report template leading to errors: duplicate chunk labels #110

mamcisaac opened this issue Nov 3, 2022 · 0 comments

Comments

@mamcisaac
Copy link

The Lab Report template provided in the openintro package has a sample code chunk for Exercise 1 and that code chunk has a label ("code-chunk-label").

Many of my students copy and paste this code chunk when completing later Exercises, which leads to an error caused by duplicate code chunk labels. This issue is well outside the scope of what I want them to be considering in an introductory class.

A lot of unnecessary confusion could be avoided if the template simply didn't have the "code-chunk-label" label in that first code chunk.

Similarly, the ellipsis at the bottom of the document (presumably meant to indicate to students that they should continue the document after Exercise 2) seems to cause confusion to students new to RMarkdown because many assume it is an important part of the document, like the chunk delimiters ("```" vs "...").

To summarize, I recommend avoiding unnecessary confusion by modifying the Lab Report template by

  1. deleting the code chunk label "code-chunk-label"
  2. deleting the ellipsis ("...") at the bottom of the document
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

No branches or pull requests

1 participant