CRAN Package Check Results for Package CDECRetrieve

Last updated on 2021-09-24 11:50:22 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-fedora-clang 0.1.5 34.95 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.5 22.69 ERROR

Additional issues

M1mac

Check Details

Version: 0.1.5
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘lazyeval’ ‘purrr’ ‘roxygen2’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.1.5
Check: tests
Result: ERROR
     Running ‘testthat.R’ [1s/492s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(CDECRetrieve)
     >
     > test_check("CDECRetrieve")
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-dataset-query.R:5:3): a response from CDEC happens ──────────────
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. └─CDECRetrieve::cdec_datasets("kwk") test-dataset-query.R:5:2
     2. └─base::tryCatch(...)
     3. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     4. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     5. └─value[[3L]](cond)
     ── Failure (test-dataset-query.R:10:3): errors when incorrect station id is provided ──
     `cdec_datasets("zzz")` threw an error with unexpected message.
     Expected match: "CDEC datasets service returned no data for 'zzz'"
     Actual message: "Could not reach CDEC services"
     Backtrace:
     █
     1. ├─testthat::expect_error(cdec_datasets("zzz"), "CDEC datasets service returned no data for 'zzz'") test-dataset-query.R:10:2
     2. │ └─testthat:::quasi_capture(...)
     3. │ ├─testthat:::.capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. └─CDECRetrieve::cdec_datasets("zzz")
     7. └─base::tryCatch(...)
     8. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     9. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     10. └─value[[3L]](cond)
     ── Error (test-rt-functions.R:8:3): cdec_rt() returns a df when a station has a rating table ──
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. ├─testthat::expect_is(cdec_rt("ABJ"), c("tbl_df", "tbl", "data.frame")) test-rt-functions.R:8:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─CDECRetrieve::cdec_rt("ABJ")
     5. └─base::tryCatch(...)
     6. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     7. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     8. └─value[[3L]](cond)
     ── Error (test-rt-functions.R:12:3): cdec_rt() returns the expected columns ────
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. ├─testthat::expect_equal(...) test-rt-functions.R:12:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─base::colnames(cdec_rt("ABJ"))
     5. │ └─base::is.data.frame(x)
     6. └─CDECRetrieve::cdec_rt("ABJ")
     7. └─base::tryCatch(...)
     8. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     9. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     10. └─value[[3L]](cond)
     ── Error (test-rt-functions.R:20:3): cdec_rt() returns a dataframe of stations ──
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. ├─testthat::expect_is(cdec_rt_list(), c("tbl_df", "tbl", "data.frame")) test-rt-functions.R:20:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─CDECRetrieve::cdec_rt_list()
     5. └─base::tryCatch(...)
     6. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     7. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     8. └─value[[3L]](cond)
     ── Failure (test-stations-search.R:5:3): cdec_stations returns an error when you enter an invalid station_id ──
     `cdec_stations("XXX")` threw an error with unexpected message.
     Expected match: "request returned no data, please check input values"
     Actual message: "Could not reach CDEC services"
     Backtrace:
     █
     1. ├─testthat::expect_error(cdec_stations("XXX"), "request returned no data, please check input values") test-stations-search.R:5:2
     2. │ └─testthat:::quasi_capture(...)
     3. │ ├─testthat:::.capture(...)
     4. │ │ └─base::withCallingHandlers(...)
     5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. └─CDECRetrieve::cdec_stations("XXX")
     7. └─base::tryCatch(...)
     8. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     9. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     10. └─value[[3L]](cond)
     ── Error (test-stations-search.R:13:3): cdec stations returns a dataframe when you enter a valid station id ──
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. ├─testthat::expect_is(...) test-stations-search.R:13:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─CDECRetrieve::cdec_stations(station_id = "EMM")
     5. └─base::tryCatch(...)
     6. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     7. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     8. └─value[[3L]](cond)
     ── Error (test-stations-search.R:17:3): cdec stations returns a dataframe with at least one row ──
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. ├─testthat::expect_gt(...) test-stations-search.R:17:2
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─base::nrow(cdec_stations(nearby_city = "Sacramento"))
     5. └─CDECRetrieve::cdec_stations(nearby_city = "Sacramento")
     6. └─base::tryCatch(...)
     7. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     8. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9. └─value[[3L]](cond)
     ── Error (test-stations-search.R:21:3): the colnames are correct ───────────────
     Error: Could not reach CDEC services
     Backtrace:
     █
     1. └─CDECRetrieve::cdec_stations(station_id = "EMM") test-stations-search.R:21:2
     2. └─base::tryCatch(...)
     3. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     4. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     5. └─value[[3L]](cond)
     ── Error (test_query.R:5:3): a response from CDEC happens ──────────────────────
     Error: call to cdec failed for uknown reason, check http://cdec.water.ca.gov for status
     Backtrace:
     █
     1. └─CDECRetrieve::cdec_query("kwk", "20", "h", "2020-03-01") test_query.R:5:2
     2. └─base::tryCatch(...)
     3. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     4. └─base:::tryCatchOne(...)
     5. └─value[[3L]](cond)
     ── Error (test_query.R:10:3): the colnames are correct ─────────────────────────
     Error: call to cdec failed for uknown reason, check http://cdec.water.ca.gov for status
     Backtrace:
     █
     1. └─CDECRetrieve::cdec_query("kwk", "20", "h", "2020-03-01") test_query.R:10:2
     2. └─base::tryCatch(...)
     3. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     4. └─base:::tryCatchOne(...)
     5. └─value[[3L]](cond)
    
     [ FAIL 11 | WARN 0 | SKIP 0 | PASS 4 ]
     Error: Test failures
     Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc