Skip to content

Commit 1258594

Browse files
committed
Praise sentences from {gradethis} eliminated
1 parent df98306 commit 1258594

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- "Tutorial" C99La_avis added to get a quick feedback from the students.
66

7+
- Praise sentences in English are eliminated from result outputs of {gradethis}.
8+
79
## Changes in version 2020.5.2
810

911
- devel/ directory for learnrs and Shiny apps in development

R/learnr.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88
#'
99
#' @export
1010
learnr_setup <- function(cap = "Code R",
11-
debug = Sys.getenv("LEARNDOWN_DEBUG", 0) != 0) {
11+
debug = Sys.getenv("LEARNDOWN_DEBUG", 0) != 0) {
1212
learndown::learndownLearnrSetup(config = BioDataScience::config(),
1313
sign_in = BioDataScience::sign_in(), cap = cap, debug = debug)
14+
# Eliminate praise sentence in English before results
15+
options(
16+
# gradethis_glue_correct = "{ random_praise() } { .message } { .correct }",
17+
gradethis_glue_correct = "{ .message } { .correct }",
18+
# gradethis_glue_incorrect = "{ .message } { .incorrect } { random_encourage() }"
19+
gradethis_glue_incorrect = "{ .message } { .incorrect }"
20+
)
1421
}
1522

1623
#' @rdname learnr_setup

0 commit comments

Comments
 (0)