CRAN Package Check Results for Package compstatr

Last updated on 2021-10-23 10:56:48 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 11.26 94.69 105.95 OK
r-devel-linux-x86_64-debian-gcc 0.2.1 8.34 70.75 79.09 OK
r-devel-linux-x86_64-fedora-clang 0.2.1 144.83 OK
r-devel-linux-x86_64-fedora-gcc 0.2.1 128.10 OK
r-devel-windows-x86_64 0.2.1 17.00 116.00 133.00 ERROR
r-devel-windows-x86_64-gcc10-UCRT 0.2.1 ERROR
r-patched-linux-x86_64 0.2.1 11.32 91.33 102.65 OK
r-patched-solaris-x86 0.2.1 178.80 ERROR
r-release-linux-x86_64 0.2.1 7.56 89.77 97.33 OK
r-release-macos-arm64 0.2.1 OK
r-release-macos-x86_64 0.2.1 OK
r-release-windows-ix86+x86_64 0.2.1 17.00 105.00 122.00 ERROR
r-oldrel-macos-x86_64 0.2.1 OK
r-oldrel-windows-ix86+x86_64 0.2.1 23.00 121.00 144.00 ERROR

Additional issues

donttest

Check Details

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'compstatr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: cs_load_year
    > ### Title: Create Year List Object
    > ### Aliases: cs_load_year
    >
    > ### ** Examples
    >
    > # create temporary directory
    > tmpdir <- tempdir()
    > fs::dir_create(paste0(tmpdir,"/data/"))
    >
    > # load sample files into temporary directory
    > cs_example(path = paste0(tmpdir,"/data/"))
    >
    > # prep sample files
    > cs_prep_year(path = paste0(tmpdir,"/data/"))
    >
    > # load sample files
    > yearList17 <- cs_load_year(path = paste0(tmpdir,"/data/"))
    >
    > # delete data
    > fs::dir_delete(paste0(tmpdir,"/data/"))
    Error: [EBUSY] Failed to remove 'D:/temp/Rtmp46inMT/data/april2017.csv': resource busy or locked
    Execution halted
Flavor: r-devel-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'testthat.R' [13s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(compstatr)
     >
     > test_check("compstatr")
     == Skipped tests ===============================================================
     * On CRAN (3)
    
     == Failed tests ================================================================
     -- Error (test_load_year.R:55:1): (code run outside of `test_that()`) ----------
     <EBUSY/fs_error/error/condition>
     Error: [EBUSY] Failed to remove 'D:/temp/RtmpOQmsUb/data/december2017.csv': resource busy or locked
     Backtrace:
     x
     1. \-fs::file_delete(paste0(tmpdir, "/data/december2017.csv")) test_load_year.R:55:0
     -- Failure (test_prep_year.R:21:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:21:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Failure (test_prep_year.R:35:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:35:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Error (test_prep_year.R:54:1): (code run outside of `test_that()`) ----------
     Error in `cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE)`: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Backtrace:
     x
     1. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE) test_prep_year.R:54:0
    
     [ FAIL 4 | WARN 1 | SKIP 3 | PASS 219 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'compstatr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: cs_load_year
    > ### Title: Create Year List Object
    > ### Aliases: cs_load_year
    >
    > ### ** Examples
    >
    > # create temporary directory
    > tmpdir <- tempdir()
    > fs::dir_create(paste0(tmpdir,"/data/"))
    >
    > # load sample files into temporary directory
    > cs_example(path = paste0(tmpdir,"/data/"))
    >
    > # prep sample files
    > cs_prep_year(path = paste0(tmpdir,"/data/"))
    >
    > # load sample files
    > yearList17 <- cs_load_year(path = paste0(tmpdir,"/data/"))
    >
    > # delete data
    > fs::dir_delete(paste0(tmpdir,"/data/"))
    Error: [EBUSY] Failed to remove 'C:/r_packages/pkgcheck/CRAN/compstatr/tmp/RtmpcfLQSm/data/april2017.csv': resource busy or locked
    Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'testthat.R'
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(compstatr)
     >
     > test_check("compstatr")
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (3)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test_load_year.R:55:1): (code run outside of `test_that()`) ──────────
     <EBUSY/fs_error/error/condition>
     Error: [EBUSY] Failed to remove 'C:/r_packages/pkgcheck/CRAN/compstatr/tmp/RtmpEnEItN/data/december2017.csv': resource busy or locked
     Backtrace:
     █
     1. └─fs::file_delete(paste0(tmpdir, "/data/december2017.csv")) test_load_year.R:55:0
    
     [ FAIL 1 | WARN 1 | SKIP 3 | PASS 225 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-x86_64-gcc10-UCRT

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in ‘compstatr-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: cs_last_update
    > ### Title: Date of Last Crime Data Update from SLMPD
    > ### Aliases: cs_last_update
    >
    > ### ** Examples
    >
    > # obtain data of last update
    > cs_last_update()
    Error in open.connection(x, "rb") :
     Timeout was reached: [www.slmpd.org] Resolving timed out after 10000 milliseconds
    Calls: cs_last_update -> <Anonymous> -> read_html.default
    Execution halted
Flavor: r-patched-solaris-x86

Version: 0.2.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [16s/37s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(compstatr)
     >
     > test_check("compstatr")
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • On CRAN (2)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test_last_update.R:13:1): (code run outside of `test_that()`) ────────
     Error in `open.connection(x, "rb")`: Timeout was reached: [www.slmpd.org] Resolving timed out after 10000 milliseconds
     Backtrace:
     █
     1. └─compstatr::cs_last_update(output = "date") test_last_update.R:13:0
     2. ├─xml2::read_html("http://www.slmpd.org/CrimeReport.aspx")
     3. └─xml2:::read_html.default("http://www.slmpd.org/CrimeReport.aspx")
     4. ├─base::suppressWarnings(...)
     5. │ └─base::withCallingHandlers(...)
     6. ├─xml2::read_xml(x, encoding = encoding, ..., as_html = TRUE, options = options)
     7. └─xml2:::read_xml.character(...)
     8. └─xml2:::read_xml.connection(...)
     9. ├─base::open(x, "rb")
     10. └─base::open.connection(x, "rb")
    
     [ FAIL 1 | WARN 1 | SKIP 2 | PASS 226 ]
     Error: Test failures
     In addition: Warning message:
     In is_null(size) :
     closing unused connection 4 (http://www.slmpd.org/CrimeReport.aspx)
     Execution halted
Flavor: r-patched-solaris-x86

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'compstatr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: cs_load_year
    > ### Title: Create Year List Object
    > ### Aliases: cs_load_year
    >
    > ### ** Examples
    >
    > # create temporary directory
    > tmpdir <- tempdir()
    > fs::dir_create(paste0(tmpdir,"/data/"))
    >
    > # load sample files into temporary directory
    > cs_example(path = paste0(tmpdir,"/data/"))
    >
    > # prep sample files
    > cs_prep_year(path = paste0(tmpdir,"/data/"))
    >
    > # load sample files
    > yearList17 <- cs_load_year(path = paste0(tmpdir,"/data/"))
    >
    > # delete data
    > fs::dir_delete(paste0(tmpdir,"/data/"))
    Error: [EBUSY] Failed to remove 'D:/temp/RtmpaKhdls/data/april2017.csv': resource busy or locked
    Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'testthat.R' [12s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(compstatr)
     >
     > test_check("compstatr")
     == Skipped tests ===============================================================
     * On CRAN (3)
    
     == Failed tests ================================================================
     -- Error (test_load_year.R:55:1): (code run outside of `test_that()`) ----------
     <EBUSY/fs_error/error/condition>
     Error: [EBUSY] Failed to remove 'D:/temp/RtmpmWeGap/data/december2017.csv': resource busy or locked
     Backtrace:
     x
     1. \-fs::file_delete(paste0(tmpdir, "/data/december2017.csv")) test_load_year.R:55:0
     -- Failure (test_prep_year.R:21:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:21:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Failure (test_prep_year.R:35:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:35:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Error (test_prep_year.R:54:1): (code run outside of `test_that()`) ----------
     Error in `cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE)`: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Backtrace:
     x
     1. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE) test_prep_year.R:54:0
    
     [ FAIL 4 | WARN 1 | SKIP 3 | PASS 219 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.2.1
Check: examples
Result: ERROR
    Running examples in 'compstatr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: cs_load_year
    > ### Title: Create Year List Object
    > ### Aliases: cs_load_year
    >
    > ### ** Examples
    >
    > # create temporary directory
    > tmpdir <- tempdir()
    > fs::dir_create(paste0(tmpdir,"/data/"))
    >
    > # load sample files into temporary directory
    > cs_example(path = paste0(tmpdir,"/data/"))
    >
    > # prep sample files
    > cs_prep_year(path = paste0(tmpdir,"/data/"))
    >
    > # load sample files
    > yearList17 <- cs_load_year(path = paste0(tmpdir,"/data/"))
    >
    > # delete data
    > fs::dir_delete(paste0(tmpdir,"/data/"))
    Error: [EBUSY] Failed to remove 'D:/temp/RtmpAFDWqF/data/april2017.csv': resource busy or locked
    Execution halted
Flavor: r-oldrel-windows-ix86+x86_64

Version: 0.2.1
Check: tests
Result: ERROR
     Running 'testthat.R' [14s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(compstatr)
     >
     > test_check("compstatr")
     == Skipped tests ===============================================================
     * On CRAN (3)
    
     == Failed tests ================================================================
     -- Error (test_load_year.R:55:1): (code run outside of `test_that()`) ----------
     <EBUSY/fs_error/error/condition>
     Error: [EBUSY] Failed to remove 'D:/temp/RtmpUBPv5L/data/december2017.csv': resource busy or locked
     Backtrace:
     x
     1. \-fs::file_delete(paste0(tmpdir, "/data/december2017.csv")) test_load_year.R:55:0
     -- Failure (test_prep_year.R:21:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:21:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Failure (test_prep_year.R:35:3): correctly specified functions execute without error --
     `cs_prep_year(path = paste0(tmpdir, "/data/"))` threw an error.
     Message: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Class: simpleError/error/condition
     Backtrace:
     x
     1. +-testthat::expect_error(...) test_prep_year.R:35:2
     2. | \-testthat:::quasi_capture(...)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"))
     -- Error (test_prep_year.R:54:1): (code run outside of `test_that()`) ----------
     Error in `cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE)`: There are too many files in the specified folder. Edit crime files in yearly batches of 12 monthly files.
     Backtrace:
     x
     1. \-compstatr::cs_prep_year(path = paste0(tmpdir, "/data/"), verbose = TRUE) test_prep_year.R:54:0
    
     [ FAIL 4 | WARN 1 | SKIP 3 | PASS 219 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64