CRAN Package Check Results for Package withr

Last updated on 2021-04-16 00:47:33 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.4.1 2.03 39.70 41.73 NOTE
r-devel-linux-x86_64-debian-gcc 2.4.1 2.45 31.27 33.72 ERROR
r-devel-linux-x86_64-fedora-clang 2.4.1 64.73 ERROR
r-devel-linux-x86_64-fedora-gcc 2.4.1 52.36 ERROR
r-devel-windows-ix86+x86_64 2.4.1 7.00 58.00 65.00 NOTE
r-devel-windows-x86_64-gcc10-UCRT 2.4.1 ERROR
r-patched-linux-x86_64 2.4.1 1.94 38.13 40.07 OK
r-patched-solaris-x86 2.4.1 74.80 OK
r-release-linux-x86_64 2.4.1 2.26 39.12 41.38 OK
r-release-macos-x86_64 2.4.1 OK
r-release-windows-ix86+x86_64 2.4.1 5.00 59.00 64.00 OK
r-oldrel-macos-x86_64 2.4.1 OK
r-oldrel-windows-ix86+x86_64 2.4.1 5.00 45.00 50.00 OK

Additional issues

M1mac

Check Details

Version: 2.4.1
Check: LazyData
Result: NOTE
     'LazyData' is specified without a 'data' directory
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-devel-windows-x86_64-gcc10-UCRT

Version: 2.4.1
Check: examples
Result: ERROR
    Running examples in ‘withr-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: with_timezone
    > ### Title: Time zone
    > ### Aliases: with_timezone local_timezone
    >
    > ### ** Examples
    >
    > Sys.time()
    [1] "2021-04-15 18:43:59 CEST"
    > with_timezone("Europe/Paris", print(Sys.time()))
    Error in assign(".sys.timezone", NA, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Error in assign(".sys.timezone", old, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [5s/7s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(withr)
     >
     > test_check("withr")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─withr::local_timezone(tzone) test-timezone.R:42:6
     3. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─(function (envir) ... test-timezone.R:45:4
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 299 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2.4.1
Check: examples
Result: ERROR
    Running examples in ‘withr-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: with_timezone
    > ### Title: Time zone
    > ### Aliases: with_timezone local_timezone
    >
    > ### ** Examples
    >
    > Sys.time()
    [1] "2021-04-13 20:40:27 BST"
    > with_timezone("Europe/Paris", print(Sys.time()))
    Error in assign(".sys.timezone", NA, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Error in assign(".sys.timezone", old, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [7s/19s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(withr)
     >
     > test_check("withr")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─withr::local_timezone(tzone) test-timezone.R:42:6
     3. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─(function (envir) ... test-timezone.R:45:4
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 299 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.4.1
Check: examples
Result: ERROR
    Running examples in ‘withr-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: with_timezone
    > ### Title: Time zone
    > ### Aliases: with_timezone local_timezone
    >
    > ### ** Examples
    >
    > Sys.time()
    [1] "2021-04-13 20:25:16 BST"
    > with_timezone("Europe/Paris", print(Sys.time()))
    Error in assign(".sys.timezone", NA, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Error in assign(".sys.timezone", old, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(withr)
     >
     > test_check("withr")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:5:5): with_timezone: changes the time zone ───────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:5:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:16:5): with_timezone: restores the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-timezone.R:16:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:31:5): local_timezone: changes the time zone ─────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. ├─testthat::expect_identical(...) test-timezone.R:31:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─withr::with_timezone("CET", Sys.timezone())
     5. └─base::assign(".sys.timezone", old, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─withr::local_timezone(tzone) test-timezone.R:42:6
     3. └─base::assign(".sys.timezone", NA, envir = baseenv())
     ── Error (test-timezone.R:45:5): local_timezone: restores the time zone ────────
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     █
     1. └─withr:::fun("CET") test-timezone.R:45:4
     2. └─(function (envir) ... test-timezone.R:45:4
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 299 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 2.4.1
Check: examples
Result: ERROR
    Running examples in 'withr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: with_timezone
    > ### Title: Time zone
    > ### Aliases: with_timezone local_timezone
    >
    > ### ** Examples
    >
    > Sys.time()
    [1] "2021-04-15 12:14:13 CEST"
    > with_timezone("Europe/Paris", print(Sys.time()))
    Error in assign(".sys.timezone", NA, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Error in assign(".sys.timezone", old, envir = baseenv()) :
     cannot change value of locked binding for '.sys.timezone'
    Calls: with_timezone -> assign
    Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 2.4.1
Check: tests
Result: ERROR
     Running 'testthat.R'
    Running the tests in 'tests/testthat.R' failed.
    Last 13 lines of output:
     Backtrace:
     x
     1. \-withr:::fun("CET") test-timezone.R:45:4
     2. \-withr::local_timezone(tzone) test-timezone.R:42:6
     3. \-base::assign(".sys.timezone", NA, envir = baseenv())
     -- Error (test-timezone.R:45:5): local_timezone: restores the time zone --------
     Error: cannot change value of locked binding for '.sys.timezone'
     Backtrace:
     x
     1. \-withr:::fun("CET") test-timezone.R:45:4
     2. \-(function (envir) ... test-timezone.R:45:4
    
     [ FAIL 8 | WARN 0 | SKIP 0 | PASS 299 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT