Giter Club home page Giter Club logo

Comments (7)

chrispyles avatar chrispyles commented on May 24, 2024 1

This is a pretty simple fix... although I think replacing with NULL might give students the wrong idea. What about, e.g., a string like "YOUR CODE HERE" or some other value indicating that the statement needs to be replaced? Or a line with NULL # YOUR CODE HERE as an indicator to students?

from otter-grader.

afranks86 avatar afranks86 commented on May 24, 2024

I agree. For inline prompts I like NULL # YOUR CODE HERE and for multi-line solution removal just

## YOUR CODE HERE

Even "..." would work better in R than a regular ellipsis and matches the python, but I guess this also doesn't really send the right message to students.

from otter-grader.

afranks86 avatar afranks86 commented on May 24, 2024

I have another thought which is specific to RMarkdown that I think is the best case solution. I assume this is much more difficult to implement, however:

For any code chunks with solution removal, in addition to adding the placeholder text, set the chunk option eval=FALSE. This way, R would not run any code without students explicitly setting eval=TRUE, after attempting a solution. With eval=FALSE you could still knit the assignment with unfinished / unattempted solutions, which would be useful for releasing a pdf of the assignment template, for example.

from otter-grader.

chrispyles avatar chrispyles commented on May 24, 2024

While this is do-able, I am hesitant for the same reason as just indicating NULL. I don't think students will realize they need to change this when the knit and so their knitted document won't include the output of those cells. The goal here should be something that is obvious and low-effort for students. I think that NULL # YOUR CODE HERE is the best option.

from otter-grader.

chrispyles avatar chrispyles commented on May 24, 2024

Opened #124 and released v1.1.3 which implements this change.

from otter-grader.

afeld avatar afeld commented on May 24, 2024

Came to open a similar issue.

I don't think students will realize they need to change this

I think this is the same for ... β€” thinking # YOUR CODE HERE would be much more explicit. Using Python in my case.) Happy to open a new issue if that's better.

from otter-grader.

chrispyles avatar chrispyles commented on May 24, 2024

@afeld yes, please open a new issue for this feature request.

from otter-grader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.