-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weathercan #27
Comments
Thanks for submitting to rOpenSci, our editors and @ropensci-review-bot will reply soon. Type |
Missing values: language |
🚀 The following problem was found in your submission template:
👋 |
Checks for weathercan (v0.6.1.9000)git hash: d1c70f4d
Important: All failing checks above must be addressed prior to proceeding Package License: GPL-3 1. Statistical PropertiesThis package features some noteworthy statistical properties which may need to be clarified by a handling editor prior to progressing. Details of statistical properties (click to open)
The package has:
Statistical properties of package structure as distributional percentiles in relation to all current CRAN packages
The final measure (
1a. Network visualisationClick to see the interactive network visualisation of calls between objects in package 2.
|
name | conclusion | sha | date |
---|---|---|---|
R-CMD-check | 43a27d | 2021-11-02 | |
test-coverage | 43a27d | 2021-11-02 |
3b. goodpractice
results
R CMD check
with rcmdcheck
R CMD check generated the following error:
- checking tests ...
Running ‘testthat.R’
ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
4. │ └─rlang::eval_bare(expr, quo_get_env(quo))
5. └─testthat::expect_silent(...)
── Failure (test_08_normals.R:250:5): normals_dl() gets extreme wind chill correctly ──
nd <- normals_dl(climate_id = "2100517")
produced messages.
Backtrace:
█- ├─expect_silent(nd <- normals_dl(climate_id = "2100517")) %>% expect_is("tbl_df") test_08_normals.R:250:4
- ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(nd <- normals_dl(climate_id = "2100517"))
[ FAIL 37 | WARN 0 | SKIP 7 | PASS 637 ]
Error: Test failures
Execution halted
R CMD check generated the following note:
- checking data for non-ASCII characters ... NOTE
Note: found 3 marked UTF-8 strings
R CMD check generated the following test_fail:
-
library(testthat)
library(weathercan)
weathercan v0.6.1.9000
The internalstations
data has been deprecated in favour of the functionstations()
.
See ?stations for more details.Sys.setenv("R_TESTS" = "")
test_check("weathercan")
══ Skipped tests ═══════════════════════════════════════════════════════════════
• On CRAN (7)
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test_02_utils.R:19:3): check_ids() as expected ─────────────────────
check_ids(1795, stations(), type = "station_id")
produced messages.
── Failure (test_02_utils.R:20:3): check_ids() as expected ─────────────────────
check_ids("301AR54", stations(), type = "climate_id")
produced messages.
── Failure (test_03_station_dl.R:83:2): stations() /stations_meta() return data ──
s <- stations()
produced messages.
Backtrace:
█
- ├─expect_silent(s <- stations()) %>% expect_s3_class("data.frame") test_03_station_dl.R:83:1
- ├─testthat::expect_s3_class(., "data.frame")
- │ └─testthat::quasi_label(enquo(object), arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(s <- stations())
── Failure (test_03_station_dl.R:189:3): stations_search quiet/verbose ─────────
stations_search(c(54, -122), quiet = TRUE)
produced messages.
── Failure (test_03_station_dl.R:190:3): stations_search quiet/verbose ─────────
stations_search(coords = c(54, -122), quiet = TRUE)
produced messages.
── Failure (test_03_station_dl.R:253:3): stations_search returns normals only ──
s <- stations_search("Brandon", normals_years = "current")
produced messages.
── Failure (test_03_station_dl.R:258:3): stations_search returns normals only ──
s1 <- stations_search("Brandon", normals_years = "1981-2010")
produced messages.
── Failure (test_03_station_dl.R:262:3): stations_search returns normals only ──
s2 <- stations_search("Brandon", normals_years = "1971-2000")
produced messages.
── Failure (test_06_weather_dl_1_hour.R:19:3): weather (hour) returns a data frame ──
weather_dl(station_ids = 51423, start = "2014-01-01", end = "2014-01-31")
produced messages.
── Failure (test_06_weather_dl_1_hour.R:49:3): weather (hour) formats timezone display ──
{ ... }
produced messages.
── Failure (test_06_weather_dl_1_hour.R:57:3): weather (hour) formats NL timezone ──
{ ... }
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_1_hour.R:57:2
- │ └─cassette$call_block(...)
- ├─
%>%
(...) test_06_weather_dl_1_hour.R:58:4 - ├─testthat::expect_is(., "data.frame")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(...)
── Failure (test_06_weather_dl_1_hour.R:69:3): weather (hour) multiple stations ──
{ ... }
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_1_hour.R:69:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_1_hour.R:70:4
── Failure (test_06_weather_dl_1_hour.R:78:3): weather (hour) multiple stations ──
{ ... }
produced messages.
── Failure (test_06_weather_dl_1_hour.R:88:3): weather (hour) multiple stations ──
{ ... }
produced messages.
── Failure (test_06_weather_dl_1_hour.R:100:3): weather (hour) gets all ────────
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_1_hour.R:100:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_1_hour.R:101:4
── Failure (test_06_weather_dl_1_hour.R:175:3): weather (hour) verbose and quiet ──
weather_dl(...)
produced messages.
── Failure (test_06_weather_dl_1_hour.R:186:3): weather (hour) handles data with different numbers of columns ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_1_hour.R:186:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_1_hour.R:187:4
── Failure (test_06_weather_dl_1_hour.R:210:3): weather (hour) crosses the year line ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_1_hour.R:210:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_1_hour.R:211:4
── Failure (test_06_weather_dl_2_day.R:43:3): weather (day) gets all, one year ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_2_day.R:43:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_2_day.R:44:4
── Failure (test_06_weather_dl_2_day.R:53:3): weather (day) gets all, one year ──
weather_dl(...)
produced messages.
── Failure (test_06_weather_dl_2_day.R:69:3): weather (day) gets all, one year ──
... <- NULL
produced messages.
── Failure (test_06_weather_dl_2_day.R:80:3): weather (day) crosses the year line ──
... <- NULL
produced messages.
── Failure (test_06_weather_dl_2_day.R:89:3): weather (day) trims NAs ──────────
... <- NULL
produced messages.
── Failure (test_06_weather_dl_2_day.R:92:3): weather (day) trims NAs ──────────
... <- NULL
produced messages.
── Failure (test_06_weather_dl_2_day.R:172:3): weather (day) verbose and quiet ──
weather_dl(...)
produced messages.
── Failure (test_06_weather_dl_3_month.R:6:3): weather (month) returns a data frame ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_3_month.R:6:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_3_month.R:7:4
── Failure (test_06_weather_dl_3_month.R:86:3): weather (month) multiple stations ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_3_month.R:86:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_3_month.R:87:4
── Failure (test_06_weather_dl_3_month.R:111:3): weather (month) verbose and quiet ──
weather_dl(...)
produced messages.
── Failure (test_06_weather_dl_3_month.R:123:3): weather (month) handles data with different numbers of columns ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_3_month.R:123:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_3_month.R:124:4
── Failure (test_06_weather_dl_3_month.R:132:3): weather (month) handles data with different numbers of columns ──
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_06_weather_dl_3_month.R:132:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_06_weather_dl_3_month.R:133:4
── Failure (test_06_weather_dl_3_month.R:161:3): weather (month) crosses the year line ──
... <- NULL
produced messages.
── Failure (test_07_weather_args.R:55:3): weather_dl() month format = FALSE ────
... <- NULL
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_07_weather_args.R:55:2
- │ └─cassette$call_block(...)
- └─testthat::expect_silent(...) test_07_weather_args.R:56:4
── Failure (test_08_normals.R:196:3): normals_dl() downloads normals/frost dates as tibble - single ──
nd <- normals_dl(climate_id = "5010480")
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_08_normals.R:196:2
- │ └─cassette$call_block(...)
- ├─expect_silent(nd <- normals_dl(climate_id = "5010480")) %>% expect_is("tbl_df") test_08_normals.R:197:4
- ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(nd <- normals_dl(climate_id = "5010480"))
── Failure (test_08_normals.R:202:3): normals_dl() downloads normals/frost dates as tibble - single ──
nd <- normals_dl(climate_id = "5010480", normals_years = "1971-2000")
produced messages.
Backtrace:
█ - ├─vcr::use_cassette(...) test_08_normals.R:202:2
- │ └─cassette$call_block(...)
- ├─
%>%
(...) test_08_normals.R:203:4 - ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(...)
── Failure (test_08_normals.R:211:5): normals_dl() downloads normals/frost dates as tibble - multi 1981 ──
nd <- normals_dl(climate_id = c("2403500", "5010480", "1096450"))
produced messages.
Backtrace:
█ - ├─
%>%
(...) test_08_normals.R:211:4 - ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(...)
── Failure (test_08_normals.R:229:5): normals_dl() downloads normals/frost dates as tibble - multi 1971 ──
... <- NULL
produced messages.
Backtrace:
█ - ├─
%>%
(...) test_08_normals.R:229:4 - ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(...)
── Failure (test_08_normals.R:250:5): normals_dl() gets extreme wind chill correctly ──
nd <- normals_dl(climate_id = "2100517")
produced messages.
Backtrace:
█ - ├─expect_silent(nd <- normals_dl(climate_id = "2100517")) %>% expect_is("tbl_df") test_08_normals.R:250:4
- ├─testthat::expect_is(., "tbl_df")
- │ └─testthat::quasi_label(enquo(object), label, arg = "object")
- │ └─rlang::eval_bare(expr, quo_get_env(quo))
- └─testthat::expect_silent(nd <- normals_dl(climate_id = "2100517"))
[ FAIL 37 | WARN 0 | SKIP 7 | PASS 637 ]
Error: Test failures
Execution halted
R CMD check generated the following check_fails:
- cyclocomp
- rcmdcheck_non_ascii_characters_in_data
- rcmdcheck_tests_pass
Test coverage with covr
ERROR: Test Coverage Failed
Cyclocomplexity with cyclocomp
The following functions have cyclocomplexity >= 15:
function | cyclocomplexity |
---|---|
weather_dl | 63 |
stations_search | 30 |
weather_interp | 27 |
stations_dl_internal | 24 |
Static code analyses with lintr
lintr found the following 43 potential issues:
message | number of times |
---|---|
Avoid 1:nrow(...) expressions, use seq_len. | 1 |
Lines should not be more than 80 characters. | 41 |
Use <-, not =, for assignment. | 1 |
Package Versions
package | version |
---|---|
pkgstats | 0.0.2.64 |
pkgcheck | 0.0.2.104 |
Editor-in-Chief Instructions:
Processing may not proceed until the items marked with ✖️ have been resolved.
@ropensci-review-bot help |
@ropensci-review-bot thanks |
You are welcome |
@ropensci-review-bot help |
Hello @mpadge, here are the things you can ask me to do:
|
Reviewers:
Language Code
Submitting Author: Name (@github_handle)
Repository: https://github.com/ropensci/weathercan
Version submitted: v0.0.1
Submission type: Standard
Editor: TBD
Reviewers: TBD
Archive: TBD
Version accepted: TBD
Scope
Please indicate which category or categories from our package fit policies this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.):
Explain how and why the package falls under these categories (briefly, 1-2 sentences):
Who is the target audience and what are scientific applications of this package?
Are there other R packages that accomplish the same thing? If so, how does yours differ or meet our criteria for best-in-category?
(If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
If you made a pre-submission inquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted.
Technical checks
Confirm each of the following by checking the box.
This package:
Publication options
Do you intend for this package to go on CRAN?
Do you intend for this package to go on Bioconductor?
Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:
MEE Options
Code of conduct
The text was updated successfully, but these errors were encountered: