CRAN Package Check Results for Package datapackage.r

Last updated on 2021-10-24 00:50:54 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.3.4 8.36 100.27 108.63 OK
r-devel-linux-x86_64-debian-gcc 1.3.4 6.92 104.01 110.93 OK
r-devel-linux-x86_64-fedora-gcc 1.3.4 140.20 NOTE
r-devel-windows-x86_64 1.3.4 13.00 176.00 189.00 OK
r-devel-windows-x86_64-gcc10-UCRT 1.3.4 NOTE
r-patched-linux-x86_64 1.3.4 12.54 102.12 114.66 OK
r-patched-solaris-x86 1.3.4 89.40 ERROR
r-release-linux-x86_64 1.3.4 5.75 101.52 107.27 OK
r-release-macos-arm64 1.3.3 NOTE
r-release-macos-x86_64 1.3.4 NOTE
r-release-windows-ix86+x86_64 1.3.4 10.00 179.00 189.00 OK
r-oldrel-macos-x86_64 1.3.4 NOTE
r-oldrel-windows-ix86+x86_64 1.3.4 11.00 138.00 149.00 OK

Check Details

Version: 1.3.4
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘future’ ‘iterators’ ‘readr’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64-gcc10-UCRT, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 1.3.4
Check: examples
Result: ERROR
    Running examples in ‘datapackage.r-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: Package.load
    > ### Title: Instantiate 'Data Package' class
    > ### Aliases: Package.load
    >
    > ### ** Examples
    >
    >
    > # Load local descriptor
    > descriptor <- system.file('extdata/dp1/datapackage.json',
    + package = "datapackage.r")
    > dataPackage <- Package.load(descriptor)
    Error in context_eval(join(src), private$context, serialize) :
     SyntaxError: Unexpected token const
    Calls: Package.load ... <Anonymous> -> evaluate_js -> get_str_output -> context_eval
    Execution halted
Flavor: r-patched-solaris-x86

Version: 1.3.4
Check: tests
Result: ERROR
     Running ‘testthat.R’ [19s/60s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(datapackage.r)
     >
     > test_check("datapackage.r")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-infer.R:10:3): it infers local data package ─────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::infer(pattern = "csv", basePath = "inst/extdata/dp1") test-infer.R:10:2
     2. └─datapackage.r::Package.load("{}", basePath)
     3. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     4. └─datapackage.r:::initialize(...)
     5. └─private$build_()
     6. └─private$profile_$validate(private$currentDescriptor_)
     7. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     8. └─jsonvalidate::json_validator(schema)
     9. └─jsonvalidate:::jsonvalidate_js()
     10. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     11. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     12. ├─V8:::get_str_output(...)
     13. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:16:3): initializes with Object descriptor ─────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:16:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:23:3): initializes with URL descriptor ────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load("https://raw.githubusercontent.com/frictionlessdata/datapackage-r/master/inst/extdata/dp1/datapackage.json") test-package.R:23:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:36:3): stores errors for invalid datapackage ──────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load() test-package.R:36:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:48:3): loads relative resource ────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:48:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:60:3): loads resource from absolute URL ───────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:60:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:72:3): loads resource from absolute URL disregarding basePath ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:72:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:85:3): loads remote resource with basePath ────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:85:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:101:3): object ────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:101:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:112:3): string remote path ────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. ├─httptest::with_mock_api(...) test-package.R:112:2
     2. │ └─base::eval.parent(expr)
     3. │ └─base::eval(expr, p)
     4. └─datapackage.r::Package.load(descriptor) test-package.R:113:4
     5. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     6. └─datapackage.r:::initialize(...)
     7. └─private$build_()
     8. └─private$profile_$validate(private$currentDescriptor_)
     9. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     10. └─jsonvalidate::json_validator(schema)
     11. └─jsonvalidate:::jsonvalidate_js()
     12. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     13. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     14. ├─V8:::get_str_output(...)
     15. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:138:3): string local path ─────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:138:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:156:3): mixed ─────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:156:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:192:3): pointer ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:192:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:226:3): remote ────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. ├─testthat::with_mock(...) test-package.R:226:2
     2. │ └─testthat:::extract_mocks(mock_funs, .env = .env)
     3. ├─base::eval.parent(Package.load(descriptor))
     4. │ └─base::eval(expr, p)
     5. └─datapackage.r::Package.load(descriptor)
     6. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     7. └─datapackage.r:::initialize(...)
     8. └─private$build_()
     9. └─private$profile_$validate(private$currentDescriptor_)
     10. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     11. └─jsonvalidate::json_validator(schema)
     12. └─jsonvalidate:::jsonvalidate_js()
     13. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     14. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     15. ├─V8:::get_str_output(...)
     16. └─V8:::context_eval(join(src), private$context, serialize)
     ── Failure (test-package.R:267:3): remote bad ──────────────────────────────────
     `with_mock(...)` threw an error with unexpected message.
     Expected match: "Could not resolve host"
     Actual message: "SyntaxError: Unexpected token const"
     Backtrace:
     █
     1. ├─testthat::expect_error(...) test-package.R:267:2
     2. │ └─testthat:::quasi_capture(...)
     3. │ ├─testthat:::.capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. ├─testthat::with_mock(...)
     7. │ └─testthat:::extract_mocks(mock_funs, .env = .env)
     8. └─datapackage.r::Package.load(descriptor)
     9. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     10. └─datapackage.r:::initialize(...)
     11. └─private$build_()
     12. └─private$profile_$validate(private$currentDescriptor_)
     13. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     14. └─jsonvalidate::json_validator(schema)
     15. └─jsonvalidate:::jsonvalidate_js()
     16. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     17. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     18. ├─V8:::get_str_output(...)
     19. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:291:3): local ─────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata") test-package.R:291:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:347:3): resource ──────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:347:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:383:3): tabular resource schema ───────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:383:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:421:3): tabular resource dialect ──────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:421:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:433:3): names ─────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata") test-package.R:433:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:441:3): add ───────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:441:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:451:3): add invalid - throws array of errors in strict mode ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(...) test-package.R:451:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:458:3): add invalid - save errors in not a strict mode ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:458:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:468:3): add tabular - can read data ───────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:468:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:495:3): add with not a safe path - throw an error ─────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:495:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:504:3): get existent ──────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:504:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:512:3): get non existent ──────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:512:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:521:3): remove existent ───────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/data") test-package.R:521:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:538:3): remove non existent ───────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor, basePath = "inst/extdata/dp1") test-package.R:538:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:552:3): general ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:552:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:566:3): modified ──────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:566:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:577:3): modified invalid in strict mode ───────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(...) test-package.R:577:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:587:3): not modified ──────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:587:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:642:3): should read rows if single field foreign keys is valid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(DESCRIPTOR) test-package.R:642:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:656:3): should throw on read if single field foreign keys is invalid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:656:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:667:3): should read rows if single self field foreign keys is valid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:667:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:698:3): should read rows if single self field foreign keys is valid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:698:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:730:3): should throw on read if single self field foreign keys is invalid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:730:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:740:3): should read rows if multi field foreign keys is valid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:740:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-package.R:771:3): should throw on read if multi field foreign keys is invalid ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Package.load(descriptor) test-package.R:771:2
     2. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(private$currentDescriptor_)
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-profile.R:86:3): returns true for valid descriptor ──────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. ├─testthat::expect_true(profile$validate(descriptor)$valid) test-profile.R:86:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─profile$validate(descriptor)
     5. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     6. └─jsonvalidate::json_validator(schema)
     7. └─jsonvalidate:::jsonvalidate_js()
     8. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     9. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     10. ├─V8:::get_str_output(...)
     11. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-profile.R:92:3): errors for invalid descriptor ──────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─profile$validate(descriptor) test-profile.R:92:2
     2. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     3. └─jsonvalidate::json_validator(schema)
     4. └─jsonvalidate:::jsonvalidate_js()
     5. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     6. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     7. ├─V8:::get_str_output(...)
     8. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:20:3): works with base descriptor ────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:20:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:34:3): works with tabular descriptor ─────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:34:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:53:3): object ────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:53:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:67:3): string remote path ────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. ├─httptest::with_mock_api(...) test-resource.R:67:2
     2. │ └─base::eval.parent(expr)
     3. │ └─base::eval(expr, p)
     4. └─datapackage.r::Resource.load(descriptor) test-resource.R:68:4
     5. └─Resource$new(descriptor, basePath, strict, dataPackage)
     6. └─datapackage.r:::initialize(...)
     7. └─private$build_()
     8. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     9. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     10. └─jsonvalidate::json_validator(schema)
     11. └─jsonvalidate:::jsonvalidate_js()
     12. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     13. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     14. ├─V8:::get_str_output(...)
     15. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:96:3): string local path ─────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:96:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:113:3): general ──────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:113:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:125:3): general strict ───────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, strict = TRUE) test-resource.R:125:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:138:3): pointer ──────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:138:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:163:3): remote ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. ├─testthat::with_mock(...) test-resource.R:163:2
     2. │ └─testthat:::extract_mocks(mock_funs, .env = .env)
     3. ├─base::eval.parent(Resource.load(descriptor))
     4. │ └─base::eval(expr, p)
     5. └─datapackage.r::Resource.load(descriptor)
     6. └─Resource$new(descriptor, basePath, strict, dataPackage)
     7. └─datapackage.r:::initialize(...)
     8. └─private$build_()
     9. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     10. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     11. └─jsonvalidate::json_validator(schema)
     12. └─jsonvalidate:::jsonvalidate_js()
     13. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     14. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     15. ├─V8:::get_str_output(...)
     16. └─V8:::context_eval(join(src), private$context, serialize)
     ── Failure (test-resource.R:191:3): remote bad ─────────────────────────────────
     `with_mock(...)` threw an error with unexpected message.
     Expected match: "Could not resolve host"
     Actual message: "SyntaxError: Unexpected token const"
     Backtrace:
     █
     1. ├─testthat::expect_error(...) test-resource.R:191:2
     2. │ └─testthat:::quasi_capture(...)
     3. │ ├─testthat:::.capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. ├─testthat::with_mock(...)
     7. │ └─testthat:::extract_mocks(mock_funs, .env = .env)
     8. ├─base::eval.parent(Resource.load(descriptor))
     9. │ └─base::eval(expr, p)
     10. └─datapackage.r::Resource.load(descriptor)
     11. └─Resource$new(descriptor, basePath, strict, dataPackage)
     12. └─datapackage.r:::initialize(...)
     13. └─private$build_()
     14. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     15. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     16. └─jsonvalidate::json_validator(schema)
     17. └─jsonvalidate:::jsonvalidate_js()
     18. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     19. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     20. ├─V8:::get_str_output(...)
     21. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:207:3): local ────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "inst/extdata") test-resource.R:207:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:242:3): general resource ─────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:242:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:266:3): tabular resource schema ──────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:266:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:280:3): tabular resource dialect ─────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:280:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:312:3): tabular resource dialect updates quoteChar when given ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:312:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:342:3): tabular resource dialect does not include quoteChar, given escapeChar ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:342:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:386:3): inline ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:386:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:397:3): local ────────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "inst/extdata") test-resource.R:397:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:432:3): remote ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:432:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:442:3): remote path relative and base path remote ────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "https://example.com/") test-resource.R:442:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:452:3): remote path remote and base path remote ──────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "https://example1.com/") test-resource.R:452:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:463:3): multipart local ──────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "extdata") test-resource.R:463:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:503:3): multipart remote ─────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:503:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:515:3): multipart remote path relative and base path remote ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "https://example.com") test-resource.R:515:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:528:3): multipart remote path remote and base path remote ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor, basePath = "https://example1.com") test-resource.R:528:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:541:3): it raw reads local file source ───────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(...) test-resource.R:541:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:557:3): general resource ─────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:557:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:587:3): tabular resource inline ──────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:587:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:614:3): tabular resource local ───────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:614:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:630:3): preserve resource format from descriptor ────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:630:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:668:3): it reads incorreclty if proper encoding is not set ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:668:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:696:3): it supports dialect$delimiter ────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:696:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:728:3): it supports dialect$delimiter and true relations ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:728:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:753:3): commit ───────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:753:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-resource.R:769:3): general ──────────────────────────────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::Resource.load(descriptor) test-resource.R:769:2
     2. └─Resource$new(descriptor, basePath, strict, dataPackage)
     3. └─datapackage.r:::initialize(...)
     4. └─private$build_()
     5. └─private$profile_$validate(helpers.from.list.to.json(private$currentDescriptor_))
     6. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     7. └─jsonvalidate::json_validator(schema)
     8. └─jsonvalidate:::jsonvalidate_js()
     9. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     10. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     11. ├─V8:::get_str_output(...)
     12. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-validate.R:10:3): returns true for valid descriptor ─────────────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::validate(descriptor) test-validate.R:10:2
     2. └─datapackage.r::Package.load(descriptor = descriptor)
     3. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     4. └─datapackage.r:::initialize(...)
     5. └─private$build_()
     6. └─private$profile_$validate(private$currentDescriptor_)
     7. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     8. └─jsonvalidate::json_validator(schema)
     9. └─jsonvalidate:::jsonvalidate_js()
     10. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     11. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     12. ├─V8:::get_str_output(...)
     13. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-validate.R:16:3): returns true for valid remote descriptor ──────
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::validate(descriptor) test-validate.R:16:2
     2. └─datapackage.r::Package.load(descriptor = descriptor)
     3. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     4. └─datapackage.r:::initialize(...)
     5. └─private$build_()
     6. └─private$profile_$validate(private$currentDescriptor_)
     7. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     8. └─jsonvalidate::json_validator(schema)
     9. └─jsonvalidate:::jsonvalidate_js()
     10. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     11. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     12. ├─V8:::get_str_output(...)
     13. └─V8:::context_eval(join(src), private$context, serialize)
     ── Error (test-validate.R:22:3): returns array of errors for invalid descriptor ──
     <std::invalid_argument/C++Error/error/condition>
     Error in `context_eval(join(src), private$context, serialize)`: SyntaxError: Unexpected token const
     Backtrace:
     █
     1. └─datapackage.r::validate(descriptor) test-validate.R:22:2
     2. └─datapackage.r::Package.load(descriptor = descriptor)
     3. └─Package$new(descriptor, basePath, strict = strict, profile = profile)
     4. └─datapackage.r:::initialize(...)
     5. └─private$build_()
     6. └─private$profile_$validate(private$currentDescriptor_)
     7. └─datapackage.r::is.valid(descriptor2, helpers.from.list.to.json(private$jsonschema_))
     8. └─jsonvalidate::json_validator(schema)
     9. └─jsonvalidate:::jsonvalidate_js()
     10. └─ct$source(system.file("bundle.js", package = "jsonvalidate"))
     11. └─V8:::evaluate_js(readLines(file, encoding = "UTF-8", warn = FALSE))
     12. ├─V8:::get_str_output(...)
     13. └─V8:::context_eval(join(src), private$context, serialize)
    
     [ FAIL 80 | WARN 0 | SKIP 0 | PASS 117 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-solaris-x86

Version: 1.3.3
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘future’ ‘iterators’ ‘readr’
     All declared Imports should be used.
Flavor: r-release-macos-arm64