Comments (11)
@sarahef2 hi, I'm a bit confused as to the end goal here. Could you show a desired output?
To place R Markdown code chunks on GitHub, please use:
````
^ Note the extra ` backtick.
```{r}
# your R code here.
```
````
from assignr.
Thanks James!
The end goal is actually to have an extra parameter in the code chunks that would allow us to have selected solutions to release to the students as well as full solutions for the graders. So ideally, I'd have either:
This is the assignment.
```{r, solution = TRUE, echo=FALSE, results="asis", eval=params$graders}
cat("# This is markdown text which only appears in the solution for TAs and graders.")
```
or
This is the assignment.
```{r, solution = TRUE, echo=FALSE, results="asis"}
if(graders) cat("# This is markdown text which only appears in the solution for TAs and graders.")
```
The graders
variable would be an R variable set earlier in the document, or params$graders
set in the markdown header. However, neither of these work in assignr because it just sets the entire code chunk "asis".
The desired output is the first document, the one where the text appears as markdown.
from assignr.
Ahh, gotcha. Let me think a bit. I need to run to a few meetings. How soon are you needing this?
from assignr.
You can take your time. I'm mostly trying to figure it out for the next TA working on this class- I've found a very clunky workaround for now. Thank you!
from assignr.
Out of curiosity, which class would this be used in?
Also, I really need to start working on this package more... I keep using my own internal versions, in which it is easy to just add a grading = TRUE
chunk option.
from assignr.
BTW, previously I had called this option rubric
: #1
Also, my interval tools strip the meta chunk options from the user documents... again I really need to engage in this package more.
from assignr.
Stat 428: Statistical Computing. Dr. Ravat wants to release just sketches of the solutions to the students, while the graders have full solutions to use to grade. And a rubric/grading=TRUE option would do exactly what I need it to do, with a lot less fuss...
Ideally, I'd have:
This is the assignment.
```{asis, grading = TRUE}
# This text only appears for the graders.
```
But the github version doesn't support that.
from assignr.
Yeah, we can make that happen no problem. Here are the tags that I think should exist
directions
: shown in the assignment, but not the solutionsolutions
: shown only in the solutionrubric
: shown only in the rubric version of the solutions.
All other chunks and text would appear in all documents. Also in this system, three documents would be created:
*-assign.Rmd
and rendered output*-soln.Rmd
and rendered output*-rubric.Rmd
and rendered output
Thoughts on any other obvious tags?
from assignr.
That would be perfect! Anything marked solutions
would appear in both *-soln.Rmd
and *-rubric.Rmd
, correct?
That would work for what we need, and I can't think of any other obvious tags.
(It wouldn't fix the issue that I mentioned in the first post, but I wouldn't need to go that route any more. You still wouldn't be able to output text results from an r code chunk that would be treated asis.)
from assignr.
That would be how I would do it, although I suppose eventually we could allow users to specify that behavior.
from assignr.
The last post should have read "can't think of any other obvious tasks"- Sorry! Those tags are the most obvious ones.
from assignr.
Related Issues (12)
- Rubric or user-specified chunk types HOT 4
- Solutions spell checking HOT 1
- Clone resources to assign/soln directories HOT 5
- Add unit tests...
- CRAN Release Candidate HOT 3
- Directions / Assignment Chunks HOT 12
- Output Structure HOT 4
- Generating only Rmd files for Solution and Assignments HOT 6
- Never ending with Korean HOT 4
- Switch to parsing with {parsermd} instead of regex HOT 1
- removed chunks add extra newlines in -assign.Rmd file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assignr.