diff --git a/DESCRIPTION b/DESCRIPTION index 85aed29..64b028f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ottr Title: An R Autograding Extension for Otter-Grader -Version: 1.3.0 +Version: 1.3.1 Authors@R: c( person(given = "Christopher", family = "Pyles", @@ -16,7 +16,7 @@ Description: License: BSD_3_clause + file LICENSE Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.1 +RoxygenNote: 7.2.3 Depends: R (>= 4.0.0) Imports: diff --git a/NAMESPACE b/NAMESPACE index a6cee70..df94e02 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -5,3 +5,5 @@ export(check) export(export) export(run_autograder) export(valid_syntax) +importFrom(R6,R6Class) +importFrom(jsonlite,toJSON) diff --git a/R/GradingResults.R b/R/GradingResults.R index f870ab7..d1a50d9 100644 --- a/R/GradingResults.R +++ b/R/GradingResults.R @@ -44,6 +44,8 @@ GradingResults <- R6::R6Class( #' @description Export these results to a JSON string. #' + #' @importFrom jsonlite toJSON + #' #' @return The JSON string to_json = function() { return(jsonlite::toJSON(self$to_list(), auto_unbox = TRUE, pretty = TRUE, null = "null")) diff --git a/R/TestCase.R b/R/TestCase.R index e332b6f..f27bc68 100644 --- a/R/TestCase.R +++ b/R/TestCase.R @@ -9,6 +9,8 @@ #' @field success_message A message to show to students if the test passes #' @field failure_message A message to show to students if the test fails #' +#' @importFrom R6 R6Class +#' #' @export #' #' @examples