Skip to content

Commit

Permalink
Address lintr warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JElchison committed Dec 20, 2024
1 parent e28c762 commit 25a0092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/measures.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @param station station ID, see riem_stations()
#' @param date_start date of start of the desired data, e.g. "2016-01-01"
#' @inheritParams rlang::args_dots_empty
#' @param date_end date of end of the desired data, e.g. "2016-04-22". Default value is today.
#' @param date_end date of end of the desired data, e.g. "2016-04-22". Default value is today. # nolint: line_length_linter
#' @param data A vector of strings, representing the data columns to return.
#' The available options are: all, tmpf, dwpf, relh, drct, sknt, p01i, alti, mslp, vsby, gust, skyc1, skyc2, skyc3, skyc4, skyl1, skyl2, skyl3, skyl4, wxcodes, ice_accretion_1hr, ice_accretion_3hr, ice_accretion_6hr, peak_wind_gust, peak_wind_drct, peak_wind_time, feel, metar, snowdepth # nolint: line_length_linter
#' Default value is `all`.
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-measures.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ test_that("riem_measures parses all params", {
})
expect_s3_class(output, "tbl_df")

expect_setequal(names(output), c("station", "valid", "elevation", "tmpf", "dwpf"))
expect_setequal(names(output), c("station", "valid", "elevation", "tmpf", "dwpf")) # nolint: line_length_linter

expect_type(output[["station"]], "character")
expect_s3_class(output[["valid"]], "POSIXct")
Expand All @@ -171,7 +171,7 @@ test_that("riem_measures parses all params", {
})

test_that("riem_measures provides proper report types (6 combinations)", {
# report_type = hfmetar
# report_type = hfmetar # nolint: commented_code_linter
httptest2::with_mock_dir(file.path("fixtures", "measures3"), {
output <- riem_measures(
station = "KCVG", # choose a second station (VOHY used elsewhere)
Expand All @@ -189,7 +189,7 @@ test_that("riem_measures provides proper report types (6 combinations)", {
expect_s3_class(output[["valid"]], "POSIXct")
expect_type(output[["metar"]], "character")

# report_type = routine
# report_type = routine # nolint: commented_code_linter
httptest2::with_mock_dir(file.path("fixtures", "measures3"), {
output <- riem_measures(
station = "KCVG", # choose a second station (VOHY used elsewhere)
Expand All @@ -207,7 +207,7 @@ test_that("riem_measures provides proper report types (6 combinations)", {
expect_s3_class(output[["valid"]], "POSIXct")
expect_type(output[["metar"]], "character")

# report_type = specials
# report_type = specials # nolint: commented_code_linter
httptest2::with_mock_dir(file.path("fixtures", "measures3"), {
output <- riem_measures(
station = "KCVG", # choose a second station (VOHY used elsewhere)
Expand Down

0 comments on commit 25a0092

Please sign in to comment.