-
Notifications
You must be signed in to change notification settings - Fork 40
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
Test result api fixes#60 #63
Conversation
|
#' 2/2 correct! Absolutely fabulous!. | ||
#' @param glue_incorrect A glue string that returns the final correct message displayed. | ||
#' Defaults to \code{getOption("gradethis_glue_correct_test")}, e.g., | ||
#' 1/2 correct! Try it again; next time's the charm!. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing code and quotes.
\code{"1/2 correct! ... "}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make the change in #68
R/test_result.R
Outdated
return(evaluated_condi) | ||
|
||
} else { # evaluating a fail_if condition # nolint | ||
if (is.null(evaluated_condi)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this if/else can be replaced with
evaluated_condi <- evaluated_condi %||% graded(correct = TRUE, message = NULL)
A passing fail_if
returns a graded(correct = FALSE, message = MESSAGE)
object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh you're right! I just wrote it super explicitly to not make my brain hurt.
I should update the docs about that too...
small doc changes for pkgdown doc fixes rebase/fix conflicts/fix docs for R CMD check things to stash (broken) test_result implementation + tests fixes #60 rename test files for consistency doc updates (mainly test_result) refactor conditional flip for loop to map call
f40511d
to
3b1661c
Compare
R/evaluate_condition.R
Outdated
@@ -1,4 +1,4 @@ | |||
#' Evaluates a condition | |||
#' Evaluates a conditio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing n
archive/view_tutorial.R
Outdated
@@ -12,7 +12,10 @@ | |||
#' | |||
#' TODO need to export when feature is implement in RStudio IDE | |||
#' @noRd | |||
<<<<<<< HEAD:archive/view_tutorial.R |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
This will be rebased after #62 gets merged.
Implements the changes for
test_result