CRAN Package Check Results for Package czechrates

Last updated on 2023-01-28 07:14:51 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.2 2.49 45.10 47.59 OK
r-devel-linux-x86_64-debian-gcc 0.2.2 1.86 32.16 34.02 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.2 56.01 OK
r-devel-linux-x86_64-fedora-gcc 0.2.2 66.33 OK
r-devel-windows-x86_64 0.2.2 21.00 87.00 108.00 OK
r-patched-linux-x86_64 0.2.2 1.57 42.67 44.24 OK
r-release-linux-x86_64 0.2.2 2.48 44.40 46.88 OK
r-release-macos-arm64 0.2.2 48.00 OK
r-release-macos-x86_64 0.2.2 65.00 OK
r-release-windows-x86_64 0.2.2 15.00 86.00 101.00 OK
r-oldrel-macos-arm64 0.2.2 59.00 OK
r-oldrel-macos-x86_64 0.2.2 55.00 OK
r-oldrel-windows-ix86+x86_64 0.2.2 6.00 81.00 87.00 OK

Check Details

Version: 0.2.2
Check: examples
Result: ERROR
    Running examples in ‘czechrates-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: cnbfxrate
    > ### Title: Central bank exchange rate fixing
    > ### Aliases: cnbfxrate
    >
    > ### ** Examples
    >
    > cnbfxrate(as.Date("2002-08-12"), "EUR") # EUR/CZK rate for August 12th, 2002
    Error in if (length(file) == 0 || (n_max == 0 & identical(col_names, FALSE))) { :
     missing value where TRUE/FALSE needed
    Calls: cnbfxrate ... <Anonymous> -> <Anonymous> -> <Anonymous> -> <Anonymous>
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.2
Check: tests
Result: ERROR
     Running ‘testthat.R’ [6s/16s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(czechrates)
     >
     > test_check("czechrates")
     [ FAIL 2 | WARN 0 | SKIP 0 | PASS 26 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test-cnbfxrate.R:16'): data format ──────────────────────────────────
     Error in `if (length(file) == 0 || (n_max == 0 & identical(col_names, FALSE))) {
     return(tibble::tibble())
     }`: missing value where TRUE/FALSE needed
     Backtrace:
     ▆
     1. ├─testthat::expect_true(is.data.frame(cnbfxrate())) at test-cnbfxrate.R:16:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─base::is.data.frame(cnbfxrate())
     5. ├─czechrates::cnbfxrate()
     6. │ ├─... %>% ...
     7. │ └─base::lapply(roky, dnl_fx)
     8. │ └─czechrates (local) FUN(X[[i]], ...)
     9. │ ├─... %>% dplyr::select(-name)
     10. │ └─readr::read_delim(...)
     11. │ └─vroom::vroom(...)
     12. ├─dplyr::relocate(., date_valid, currency_code, amount, rate)
     13. ├─dplyr::filter(., date_valid %in% date)
     14. ├─dplyr::bind_rows(.)
     15. │ └─rlang::list2(...)
     16. ├─dplyr::select(., -name)
     17. ├─tidyr::pivot_longer(., cols = starts_with("X"), values_to = "rate")
     18. └─dplyr::rename(., date_valid = X1)
     ── Error ('test-cnbfxrate.R:30'): known values ─────────────────────────────────
     Error in `if (length(file) == 0 || (n_max == 0 & identical(col_names, FALSE))) {
     return(tibble::tibble())
     }`: missing value where TRUE/FALSE needed
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test-cnbfxrate.R:30:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─czechrates::cnbfxrate(as.Date("2020-04-01"), "EUR")
     5. │ ├─... %>% ...
     6. │ └─base::lapply(roky, dnl_fx)
     7. │ └─czechrates (local) FUN(X[[i]], ...)
     8. │ ├─... %>% dplyr::select(-name)
     9. │ └─readr::read_delim(...)
     10. │ └─vroom::vroom(...)
     11. ├─dplyr::relocate(., date_valid, currency_code, amount, rate)
     12. ├─dplyr::filter(., date_valid %in% date)
     13. ├─dplyr::bind_rows(.)
     14. │ └─rlang::list2(...)
     15. ├─dplyr::select(., -name)
     16. ├─tidyr::pivot_longer(., cols = starts_with("X"), values_to = "rate")
     17. └─dplyr::rename(., date_valid = X1)
    
     [ FAIL 2 | WARN 0 | SKIP 0 | PASS 26 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.2
Check: re-building of vignette outputs
Result: ERROR
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘vignette.Rmd’ using rmarkdown
    Quitting from lines 129-135 (vignette.Rmd)
    Error: processing vignette ‘vignette.Rmd’ failed with diagnostics:
    missing value where TRUE/FALSE needed
    --- failed re-building ‘vignette.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘vignette.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc