Running ‘testthat.R’ [16s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dccvalidator)
  Loading required package: shinyBS
  > 
  > test_check("dccvalidator")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • is.null(syn) is TRUE (1)
  • logged_in(syn = syn) is not TRUE (39)
  • on_travis() is not TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-check-schema-df.R:16:3): check_schema_df passes if all rows valid ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_df(dat, schema) test-check-schema-df.R:16:2
    2.   └─purrr::map(...)
    3.     └─dccvalidator:::.f(.x[[i]], ...)
    4.       └─jsonvalidate::json_validate(...)
    5.         └─jsonvalidate::json_validator(...)
    6.           └─jsonvalidate:::jsonvalidate_js()
    7.             └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.               └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.                 ├─V8:::get_str_output(...)
   10.                 └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-df.R:33:3): check_schema_df fails if all rows invalid ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_df(dat, schema) test-check-schema-df.R:33:2
    2.   └─purrr::map(...)
    3.     └─dccvalidator:::.f(.x[[i]], ...)
    4.       └─jsonvalidate::json_validate(...)
    5.         └─jsonvalidate::json_validator(...)
    6.           └─jsonvalidate:::jsonvalidate_js()
    7.             └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.               └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.                 ├─V8:::get_str_output(...)
   10.                 └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-df.R:50:3): check_schema_df fails if some rows invalid ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_df(dat, schema) test-check-schema-df.R:50:2
    2.   └─purrr::map(...)
    3.     └─dccvalidator:::.f(.x[[i]], ...)
    4.       └─jsonvalidate::json_validate(...)
    5.         └─jsonvalidate::json_validator(...)
    6.           └─jsonvalidate:::jsonvalidate_js()
    7.             └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.               └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.                 ├─V8:::get_str_output(...)
   10.                 └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-df.R:70:3): check_schema_df catches multiple invalid columns in a row ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_df(dat, schema) test-check-schema-df.R:70:2
    2.   └─purrr::map(...)
    3.     └─dccvalidator:::.f(.x[[i]], ...)
    4.       └─jsonvalidate::json_validate(...)
    5.         └─jsonvalidate::json_validator(...)
    6.           └─jsonvalidate:::jsonvalidate_js()
    7.             └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.               └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.                 ├─V8:::get_str_output(...)
   10.                 └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-json.R:15:3): Valid schemas return check_pass ──────
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_json(json, schema) test-check-schema-json.R:15:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   └─jsonvalidate::json_validate(...)
    5.     └─jsonvalidate::json_validator(...)
    6.       └─jsonvalidate:::jsonvalidate_js()
    7.         └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.           └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.             ├─V8:::get_str_output(...)
   10.             └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-json.R:32:3): check_schema_json fails for missing property ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_json(json, schema) test-check-schema-json.R:32:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   └─jsonvalidate::json_validate(...)
    5.     └─jsonvalidate::json_validator(...)
    6.       └─jsonvalidate:::jsonvalidate_js()
    7.         └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.           └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.             ├─V8:::get_str_output(...)
   10.             └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-json.R:51:3): check_schema_json fails for wrong type ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_json(json, schema) test-check-schema-json.R:51:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   └─jsonvalidate::json_validate(...)
    5.     └─jsonvalidate::json_validator(...)
    6.       └─jsonvalidate:::jsonvalidate_js()
    7.         └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.           └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.             ├─V8:::get_str_output(...)
   10.             └─V8:::context_eval(join(src), private$context, serialize)
  ── Error (test-check-schema-json.R:75:3): check_schema_json catches multiple errors ──
  <std::invalid_argument/C++Error/error/condition>
  Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
  Backtrace:
       █
    1. └─dccvalidator::check_schema_json(json, schema) test-check-schema-json.R:75:2
    2.   ├─base::suppressWarnings(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   └─jsonvalidate::json_validate(...)
    5.     └─jsonvalidate::json_validator(...)
    6.       └─jsonvalidate:::jsonvalidate_js()
    7.         └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
    8.           └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
    9.             ├─V8:::get_str_output(...)
   10.             └─V8:::context_eval(join(src), private$context, serialize)
  
  [ FAIL 8 | WARN 0 | SKIP 41 | PASS 327 ]
  Error: Test failures
  Execution halted