CRAN Package Check Results for Package weathercan

Last updated on 2020-12-01 00:46:58 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.0 11.20 240.26 251.46 ERROR
r-devel-linux-x86_64-debian-gcc 0.4.0 7.88 192.71 200.59 OK
r-devel-linux-x86_64-fedora-clang 0.4.0 319.95 NOTE
r-devel-linux-x86_64-fedora-gcc 0.4.0 311.18 NOTE
r-devel-windows-ix86+x86_64 0.4.0 19.00 253.00 272.00 OK
r-patched-linux-x86_64 0.4.0 9.47 279.45 288.92 OK
r-patched-solaris-x86 0.4.0 425.40 NOTE
r-release-linux-x86_64 0.4.0 8.67 283.37 292.04 OK
r-release-macos-x86_64 0.4.0 NOTE
r-release-windows-ix86+x86_64 0.4.0 13.00 265.00 278.00 OK
r-oldrel-macos-x86_64 0.4.0 NOTE
r-oldrel-windows-ix86+x86_64 0.4.0 11.00 336.00 347.00 OK

Check Details

Version: 0.4.0
Check: tests
Result: ERROR
     Running 'testthat.R' [136s/145s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(weathercan)
     >
     > Sys.setenv("R_TESTS" = "")
     >
     > test_check("weathercan")
     -- Skip (test_02_utils.R:11:3): check_urls() as expected -----------------------
     Reason: On CRAN
    
     -- Skip (test_03_station_dl.R:6:3): stations_normals() gets normals info -------
     Reason: On CRAN
    
     -- Skip (test_03_station_dl.R:16:3): stations_dl() runs and returns data -------
     Reason: On CRAN
    
     -- ERROR (test_04_weather_raw.R:90:3): meta_html/raw (day) download meta data --
     Error: Reader error: control characters are not allowed: #80 at 1657
     Backtrace:
     x
     1. \-vcr::use_cassette(...) test_04_weather_raw.R:90:2
     2. \-vcr::insert_cassette(...)
     3. \-Cassette$new(...)
     4. \-vcr:::initialize(...)
     5. \-self$http_interactions()
     6. +-HTTPInteractionList$new(...)
     7. | \-vcr:::initialize(...)
     8. \-self$previously_recorded_interactions()
     9. +-vcr:::compact(...)
     10. | \-base::Filter(Negate(is.null), x)
     11. | +-base::unlist(lapply(x, f))
     12. | \-base::lapply(x, f)
     13. +-base::lapply(...)
     14. \-self$deserialized_hash()
     15. \-self$serializer$deserialize_path()
     16. \-yaml::yaml.load(str)
    
     -- Skip (test_05_weather_names.R:7:3): weather_raw() hour column names as expect
     Reason: On CRAN
    
     -- Skip (test_05_weather_names.R:24:3): weather_raw() day column names as expect
     Reason: On CRAN
    
     -- Skip (test_05_weather_names.R:38:3): weather_raw() month column names as expe
     Reason: On CRAN
    
     -- ERROR (test_06_weather_dl_2_day.R:43:3): weather (day) gets all, one year ---
     Error: Reader error: control characters are not allowed: #80 at 15466
     Backtrace:
     x
     1. \-vcr::use_cassette(...) test_06_weather_dl_2_day.R:43:2
     2. \-vcr::insert_cassette(...)
     3. \-Cassette$new(...)
     4. \-vcr:::initialize(...)
     5. \-self$http_interactions()
     6. +-HTTPInteractionList$new(...)
     7. | \-vcr:::initialize(...)
     8. \-self$previously_recorded_interactions()
     9. +-vcr:::compact(...)
     10. | \-base::Filter(Negate(is.null), x)
     11. | +-base::unlist(lapply(x, f))
     12. | \-base::lapply(x, f)
     13. +-base::lapply(...)
     14. \-self$deserialized_hash()
     15. \-self$serializer$deserialize_path()
     16. \-yaml::yaml.load(str)
    
     -- ERROR (test_06_weather_dl_2_day.R:80:3): weather (day) crosses the year line
     Error: Problem with `mutate()` input `html`.
     x
    
     ================================================================================
     An HTTP request has been made that vcr does not know how to handle:
     GET https://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=54398&timeframe=2&submit=Download%2BData&Year=2016&Month=01
     There is currently no cassette in use. There are a few ways
     you can configure vcr to handle this request:
    
     Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
     If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
     & see https://books.ropensci.org/http-testing
     ================================================================================
    
    
     i Input `html` is `purrr::map(...)`.
     Backtrace:
     x
     1. +-testthat::expect_silent(...) test_06_weather_dl_2_day.R:80:2
     2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
     3. | +-testthat:::.capture(...)
     4. | | +-withr::with_output_sink(...)
     5. | | | \-base::force(code)
     6. | | +-base::withCallingHandlers(...)
     7. | | \-base::withVisible(code)
     8. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     9. +-weathercan::weather_dl(...)
     10. | \-weathercan:::weather_single(date_range, s, interval, encoding)
     11. | \-`%>%`(...)
     12. +-dplyr::select(., "data")
     13. +-dplyr::mutate(...)
     14. +-dplyr:::mutate.data.frame(...)
     15. | \-dplyr:::mutate_cols(.data, ...)
     16. | +-base::withCallingHandlers(...)
     17. | \-mask$eval_all_mutate(dots[[i]])
     18. +-purrr::map(...)
     19. | \-weathercan:::.f(.x[[i]], ...)
     20. | \-weathercan:::weather_html(station_id = s, date = .x, interval = interval)
     21. | \-weathercan:::get_html(station_id, date, interval, format = "csv")
     22. | +-base::withVisible(...)
     23. | \-weathercan:::`_f`(...)
     24. | \-httr::GET(url = getOption("weathercan.urls.weather"), query = q)
     25. | \-httr:::request_perform(req, hu$handle$handle)
     26. | \-httr:::perform_callback("request", req = req)
     27. | \-webmockr:::callback(...)
     28. | \-webmockr::HttrAdapter$new()$handle_request(req)
     29. | \-private$request_handler(req)$handle()
     30. | \-eval(parse(text = req_type_fun))(self$request)
     31. | \-err$run()
     32. | \-self$construct_message()
     33. | \-base::stop(mssg, call. = FALSE)
     34. \-base::.handleSimpleError(...)
     35. \-dplyr:::h(simpleError(msg, call))
    
     -- ERROR (test_06_weather_dl_2_day.R:89:3): weather (day) trims NAs ------------
     Error: Problem with `mutate()` input `html`.
     x
    
     ================================================================================
     An HTTP request has been made that vcr does not know how to handle:
     GET https://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=54398&timeframe=2&submit=Download%2BData&Year=2016&Month=01
     There is currently no cassette in use. There are a few ways
     you can configure vcr to handle this request:
    
     Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
     If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
     & see https://books.ropensci.org/http-testing
     ================================================================================
    
    
     i Input `html` is `purrr::map(...)`.
     Backtrace:
     x
     1. +-testthat::expect_silent(...) test_06_weather_dl_2_day.R:89:2
     2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
     3. | +-testthat:::.capture(...)
     4. | | +-withr::with_output_sink(...)
     5. | | | \-base::force(code)
     6. | | +-base::withCallingHandlers(...)
     7. | | \-base::withVisible(code)
     8. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     9. +-weathercan::weather_dl(...)
     10. | \-weathercan:::weather_single(date_range, s, interval, encoding)
     11. | \-`%>%`(...)
     12. +-dplyr::select(., "data")
     13. +-dplyr::mutate(...)
     14. +-dplyr:::mutate.data.frame(...)
     15. | \-dplyr:::mutate_cols(.data, ...)
     16. | +-base::withCallingHandlers(...)
     17. | \-mask$eval_all_mutate(dots[[i]])
     18. +-purrr::map(...)
     19. | \-weathercan:::.f(.x[[i]], ...)
     20. | \-weathercan:::weather_html(station_id = s, date = .x, interval = interval)
     21. | \-weathercan:::get_html(station_id, date, interval, format = "csv")
     22. | +-base::withVisible(...)
     23. | \-weathercan:::`_f`(...)
     24. | \-httr::GET(url = getOption("weathercan.urls.weather"), query = q)
     25. | \-httr:::request_perform(req, hu$handle$handle)
     26. | \-httr:::perform_callback("request", req = req)
     27. | \-webmockr:::callback(...)
     28. | \-webmockr::HttrAdapter$new()$handle_request(req)
     29. | \-private$request_handler(req)$handle()
     30. | \-eval(parse(text = req_type_fun))(self$request)
     31. | \-err$run()
     32. | \-self$construct_message()
     33. | \-base::stop(mssg, call. = FALSE)
     34. \-base::.handleSimpleError(...)
     35. \-dplyr:::h(simpleError(msg, call))
    
     -- ERROR (test_06_weather_dl_2_day.R:103:5): weather (day) mutliple stations ---
     Error: Problem with `mutate()` input `html`.
     x
    
     ================================================================================
     An HTTP request has been made that vcr does not know how to handle:
     GET https://climate.weather.gc.ca/climate_data/bulk_data_e.html?format=csv&stationID=54398&timeframe=2&submit=Download%2BData&Year=2016&Month=01
     vcr is currently using the following cassette:
     - ../fixtures/weather_day_51423_54398_2016.yml
     - record_mode: once
     - match_requests_on: method, uri
     Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
     If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
     & see https://books.ropensci.org/http-testing
     ================================================================================
    
    
     i Input `html` is `purrr::map(...)`.
     Backtrace:
     x
     1. +-testthat::expect_message(...) test_06_weather_dl_2_day.R:103:4
     2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages)
     3. | +-testthat:::.capture(...)
     4. | | \-base::withCallingHandlers(...)
     5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     6. +-weathercan::weather_dl(...)
     7. | \-weathercan:::weather_single(date_range, s, interval, encoding)
     8. | \-`%>%`(...)
     9. +-dplyr::select(., "data")
     10. +-dplyr::mutate(...)
     11. +-dplyr:::mutate.data.frame(...)
     12. | \-dplyr:::mutate_cols(.data, ...)
     13. | +-base::withCallingHandlers(...)
     14. | \-mask$eval_all_mutate(dots[[i]])
     15. +-purrr::map(...)
     16. | \-weathercan:::.f(.x[[i]], ...)
     17. | \-weathercan:::weather_html(station_id = s, date = .x, interval = interval)
     18. | \-weathercan:::get_html(station_id, date, interval, format = "csv")
     19. | +-base::withVisible(...)
     20. | \-weathercan:::`_f`(...)
     21. | \-httr::GET(url = getOption("weathercan.urls.weather"), query = q)
     22. | \-httr:::request_perform(req, hu$handle$handle)
     23. | \-httr:::perform_callback("request", req = req)
     24. | \-webmockr:::callback(...)
     25. | \-webmockr::HttrAdapter$new()$handle_request(req)
     26. | \-private$request_handler(req)$handle()
     27. | \-eval(parse(text = req_type_fun))(self$request)
     28. | \-err$run()
     29. | \-self$construct_message()
     30. | \-base::stop(mssg, call. = FALSE)
     31. \-base::.handleSimpleError(...)
     32. \-dplyr:::h(simpleError(msg, call))
    
     -- ERROR (test_06_weather_dl_2_day.R:114:3): weather (day) no data fails nicely
     Error: Reader error: control characters are not allowed: #80 at 76371
     Backtrace:
     x
     1. \-vcr::use_cassette(...) test_06_weather_dl_2_day.R:114:2
     2. \-vcr::insert_cassette(...)
     3. \-Cassette$new(...)
     4. \-vcr:::initialize(...)
     5. \-self$http_interactions()
     6. +-HTTPInteractionList$new(...)
     7. | \-vcr:::initialize(...)
     8. \-self$previously_recorded_interactions()
     9. +-vcr:::compact(...)
     10. | \-base::Filter(Negate(is.null), x)
     11. | +-base::unlist(lapply(x, f))
     12. | \-base::lapply(x, f)
     13. +-base::lapply(...)
     14. \-self$deserialized_hash()
     15. \-self$serializer$deserialize_path()
     16. \-yaml::yaml.load(str)
    
     -- ERROR (test_06_weather_dl_2_day.R:193:3): weather (day) handles data with dif
     Error: Reader error: control characters are not allowed: #80 at 172593
     Backtrace:
     x
     1. \-vcr::use_cassette(...) test_06_weather_dl_2_day.R:193:2
     2. \-vcr::insert_cassette(...)
     3. \-Cassette$new(...)
     4. \-vcr:::initialize(...)
     5. \-self$http_interactions()
     6. +-HTTPInteractionList$new(...)
     7. | \-vcr:::initialize(...)
     8. \-self$previously_recorded_interactions()
     9. +-vcr:::compact(...)
     10. | \-base::Filter(Negate(is.null), x)
     11. | +-base::unlist(lapply(x, f))
     12. | \-base::lapply(x, f)
     13. +-base::lapply(...)
     14. \-self$deserialized_hash()
     15. \-self$serializer$deserialize_path()
     16. \-yaml::yaml.load(str)
    
     -- ERROR (test_06_weather_dl_2_day.R:217:3): weather (day) skips with message if
     Error: Reader error: control characters are not allowed: #80 at 79463
     Backtrace:
     x
     1. \-vcr::use_cassette(...) test_06_weather_dl_2_day.R:217:2
     2. \-vcr::insert_cassette(...)
     3. \-Cassette$new(...)
     4. \-vcr:::initialize(...)
     5. \-self$http_interactions()
     6. +-HTTPInteractionList$new(...)
     7. | \-vcr:::initialize(...)
     8. \-self$previously_recorded_interactions()
     9. +-vcr:::compact(...)
     10. | \-base::Filter(Negate(is.null), x)
     11. | +-base::unlist(lapply(x, f))
     12. | \-base::lapply(x, f)
     13. +-base::lapply(...)
     14. \-self$deserialized_hash()
     15. \-self$serializer$deserialize_path()
     16. \-yaml::yaml.load(str)
    
     -- Skip (test_08_normals.R:17:3): normals_url() correctly creates urls ---------
     Reason: On CRAN
    
     -- Skip (test_08_normals.R:34:3): normals_raw() download normals as character --
     Reason: On CRAN
    
     -- Skip (test_08_normals.R:50:3): normals_extract() cleans up raw data ---------
     Reason: On CRAN
    
     -- Skip (test_08_normals.R:64:3): data_extract() / frost_extract() extract data
     Reason: On CRAN
    
     -- Skip (test_08_normals.R:80:3): normals_format()/frost_format() format data to
     Reason: On CRAN
    
     -- Skip (test_08_normals.R:106:3): normals_dl() downloads normals/frost dates as
     Reason: On CRAN
    
     -- Skipped tests --------------------------------------------------------------
     * On CRAN (12)
    
     == testthat results ===========================================================
     ERROR (test_04_weather_raw.R:90:3): meta_html/raw (day) download meta data
     ERROR (test_06_weather_dl_2_day.R:43:3): weather (day) gets all, one year
     ERROR (test_06_weather_dl_2_day.R:80:3): weather (day) crosses the year line
     ERROR (test_06_weather_dl_2_day.R:89:3): weather (day) trims NAs
     ERROR (test_06_weather_dl_2_day.R:103:5): weather (day) mutliple stations
     ERROR (test_06_weather_dl_2_day.R:114:3): weather (day) no data fails nicely
     ERROR (test_06_weather_dl_2_day.R:193:3): weather (day) handles data with different numbers of columns
     ERROR (test_06_weather_dl_2_day.R:217:3): weather (day) skips with message if end date < start date
    
     [ FAIL 8 | WARN 0 | SKIP 12 | PASS 490 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.0
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘memoise’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.4.0
Check: data for non-ASCII characters
Result: NOTE
     Note: found 3 marked UTF-8 strings
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64