CRAN Package Check Results for Package jsonlite

Last updated on 2022-10-04 00:51:38 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.8.0 7.93 53.90 61.83 ERROR
r-devel-linux-x86_64-debian-gcc 1.8.1 5.84 42.07 47.91 ERROR
r-devel-linux-x86_64-fedora-clang 1.8.2 98.79 OK
r-devel-linux-x86_64-fedora-gcc 1.8.2 94.81 OK
r-devel-windows-x86_64 1.8.2 36.00 123.00 159.00 OK
r-patched-linux-x86_64 1.8.0 8.32 51.67 59.99 OK
r-release-linux-x86_64 1.8.1 7.45 53.29 60.74 OK
r-release-macos-arm64 1.8.0 43.00 OK
r-release-macos-x86_64 1.8.1 81.00 OK
r-release-windows-x86_64 1.8.1 83.00 97.00 180.00 OK
r-oldrel-macos-arm64 1.8.0 40.00 OK
r-oldrel-macos-x86_64 1.8.1 89.00 OK
r-oldrel-windows-ix86+x86_64 1.8.1 36.00 141.00 177.00 OK

Check Details

Version: 1.8.0
Check: tests
Result: ERROR
     Running 'testthat.R' [13s/15s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > #This file runs all unit tests on every R CMD check.
     > #Comment this out to disable.
     >
     > library(testthat)
     >
     > #filter is to disable tests that rely on external servers
     > test_check("jsonlite", filter="toJSON|fromJSON|libjson|serializeJSON")
     Loading required package: jsonlite
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1502 ]
    
     == Failed tests ================================================================
     -- Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ----------------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[\"2013-06-17 22:33:44\"]"
     y[1]: "[\"2013-06-17T22:33:44\"]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:13:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ----------------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[\"2013-06-17 22:33:44\"]"
     y[1]: "[\"2013-06-17T22:33:44\"]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:13:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ----------------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[\"2013-06-17 22:33:44\"]"
     y[1]: "[\"2013-06-17T22:33:44\"]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:13:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ----------------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[\"2013-06-17 22:33:44\"]"
     y[1]: "[\"2013-06-17T22:33:44\"]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:13:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
     y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:30:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
     y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:30:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
     y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:30:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
     y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:30:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
     y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:46:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
     y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:46:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
     y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:46:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list -------
     `x` not equal to `expected`.
     1/1 mismatches
     x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
     y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
     Backtrace:
     x
     1. \-base::lapply(...) at test-toJSON-POSIXt.R:46:2
     2. \-jsonlite (local) FUN(X[[i]], ...)
     3. \-testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
     4. \-testthat (local) condition(object)
     5. \-testthat::expect_equal(x, expected, ..., expected.label = label)
     -- Failure (test-toJSON-keep-vec-names.R:19:3): keep_vec_names with named vectors --
     toJSON2(c(a = as.POSIXct("2015-01-01 3:00:00"))) not equal to "{\"a\":\"2015-01-01 03:00:00\"}".
     1/1 mismatches
     x[1]: "\"2015-01-01 03:00:00\""
     y[1]: "{\"a\":\"2015-01-01 03:00:00\"}"
     Backtrace:
     x
     1. +-testthat::expect_message(...) at test-toJSON-keep-vec-names.R:19:2
     2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages)
     3. | +-testthat (local) .capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-testthat::expect_equal(...)
     -- Failure (test-toJSON-keep-vec-names.R:19:3): keep_vec_names with named vectors --
     `expect_equal(...)` did not produce any messages.
     -- Failure (test-toJSON-keep-vec-names.R:20:3): keep_vec_names with named vectors --
     toJSON2(c(a = as.POSIXlt("2015-01-01 3:00:00"))) not equal to "{\"a\":\"2015-01-01 03:00:00\"}".
     1/1 mismatches
     x[1]: "\"2015-01-01 03:00:00\""
     y[1]: "{\"a\":\"2015-01-01 03:00:00\"}"
     Backtrace:
     x
     1. +-testthat::expect_message(...) at test-toJSON-keep-vec-names.R:20:2
     2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages)
     3. | +-testthat (local) .capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-testthat::expect_equal(...)
     -- Failure (test-toJSON-keep-vec-names.R:20:3): keep_vec_names with named vectors --
     `expect_equal(...)` did not produce any messages.
    
     [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1502 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.8.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [9s/15s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > #This file runs all unit tests on every R CMD check.
     > #Comment this out to disable.
     >
     > library(testthat)
     >
     > #filter is to disable tests that rely on external servers
     > test_check("jsonlite", filter="toJSON|fromJSON|libjson|serializeJSON")
     Loading required package: jsonlite
     [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1522 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (test-toJSON-keep-vec-names.R:18:3): keep_vec_names with named vectors ──
     toJSON2(c(a = as.Date("2015-01-01"))) not equal to "{\"a\":\"2015-01-01\"}".
     1/1 mismatches
     x[1]: "\"2015-01-01\""
     y[1]: "{\"a\":\"2015-01-01\"}"
     Backtrace:
     ▆
     1. ├─testthat::expect_message(...) at test-toJSON-keep-vec-names.R:18:2
     2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
     3. │ ├─testthat (local) .capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. └─testthat::expect_equal(...)
     ── Failure (test-toJSON-keep-vec-names.R:18:3): keep_vec_names with named vectors ──
     `expect_equal(toJSON2(c(a = as.Date("2015-01-01"))), "{\"a\":\"2015-01-01\"}")` did not produce any messages.
    
     [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1522 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc