Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsch committed Mar 1, 2016
1 parent 0b6d86c commit b29be8f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 52 deletions.
Binary file removed .sol_env.RData
Binary file not shown.
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

38 changes: 0 additions & 38 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,4 @@ License: MIT + file LICENSE
LazyData: true
Authors@R: c(person("Andreas", "Alfons", role = "aut"),
person("Filip", "Schouwenaars", email = "[email protected]", role = c("aut", "cre")))
Collate:
'expectations-like.R'
'message-builder.R'
'reporter-DataCamp.R'
'success-msg.R'
'test-an-object.R'
'test-chunk-options.R'
'test-correct.R'
'test-data-frame.R'
'test-error.R'
'test-exercise.R'
'test-expression-output.R'
'test-expression-result.R'
'test-file-exists.R'
'test-for-loop.R'
'test-function-definition.R'
'test-function-v2.R'
'test-function.R'
'test-ggplot.R'
'test-if-else.R'
'test-instruction.R'
'test-library-function.R'
'test-mc.R'
'test-object.R'
'test-or.R'
'test-output-contains.R'
'test-output-regex.R'
'test-rmd-file.R'
'test-rmd-group.R'
'test-student-typed.R'
'test-sufficient-length.R'
'test-text.R'
'test-that.R'
'test-what.R'
'test-while-loop.R'
'test-yaml-header.R'
'testwhat.R'
'utils.R'
RoxygenNote: 5.0.1
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export(test_rmd_file)
export(test_rmd_group)
export(test_student_typed)
export(test_sufficient_length)
export(test_summary)
export(test_text)
export(test_that)
export(test_what)
Expand Down
3 changes: 2 additions & 1 deletion R/reporter-DataCamp.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ DataCampReporter <- setRefClass(
message = to_html(results[[selector]]$failure_msg),
tags = results[[selector]]$tags))
} else {
return(list(correct = TRUE, message = to_html(success_msg)))
return(list(correct = TRUE,
message = to_html(success_msg)))
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion R/test-an-object.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ test_an_object <- function(name,
# Get needed elements from tw
student_env <- tw$get("student_env")
solution_env <- tw$get("solution_env")
init_tags()
init_tags(fun = "test_an_object",
auto_feedback = is.null(undefined_msg),
eq_condition = eq_condition)

if (is.null(name)) {
stop("argument \"name\" is missing, with no default")
Expand Down
4 changes: 2 additions & 2 deletions R/test-object.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test_object <- function(name, eq_condition = "equivalent",
stopifnot(exists(name, envir = solution_env, inherits = FALSE))
solution <- get(name, envir = solution_env, inherits = FALSE)

set_tags(automated_message = is.null(undefined_msg))
set_tags(auto_feedback = is.null(undefined_msg))
if (is.null(undefined_msg)) {
undefined_msg <- build_undefined_object_msg(name)
}
Expand All @@ -77,7 +77,7 @@ test_object <- function(name, eq_condition = "equivalent",
like = expect_like,
stop("invalid equality condition"))

set_tags(automated_message = is.null(incorrect_msg))
set_tags(auto_feedback = is.null(incorrect_msg))
if (is.null(incorrect_msg)) {
incorrect_msg <- build_incorrect_object_msg(name)
}
Expand Down
3 changes: 1 addition & 2 deletions man/test_correct.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion testwhat.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ LaTeX: pdfLaTeX
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,namespace,vignette
PackageRoxygenize: rd,collate,namespace,vignette

0 comments on commit b29be8f

Please sign in to comment.