Skip to content

Commit

Permalink
fix #369 - remove lcd class from lcd function, just tbl now - bump de…
Browse files Browse the repository at this point in the history
…v version
  • Loading branch information
sckott committed Aug 14, 2020
1 parent 1bc2898 commit b3b1a78
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: Client for many 'NOAA' data sources including the 'NCDC' climate
for 'NOAA' sea ice data, the 'NOAA' severe weather inventory, 'NOAA' Historical
Observing 'Metadata' Repository ('HOMR') data, 'NOAA' storm data via 'IBTrACS',
tornado data via the 'NOAA' storm prediction center, and more.
Version: 1.1.0
Version: 1.1.0.93
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Expand Down
5 changes: 1 addition & 4 deletions R/lcd.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#' zeros, so it's a good idea to keep stations as character class. required
#' @param year (integer) year, e.g., 2017. required
#' @param ... curl options passed on to [crul::verb-GET]
#' @return a data.frame, with many columns, and variable rows
#' depending on how frequently data was collected in the given year
#' @note See [lcd_cache] for managing cached files
#' @references
#' Docs:
Expand Down Expand Up @@ -54,8 +52,7 @@ lcd <- function(station, year, ...) {
path <- lcd_get(station = station, year = year, ...)
tmp <- safe_read_csv(path)
names(tmp) <- tolower(names(tmp))
df <- tibble::as_tibble(tmp)
structure(df, class = c(class(df), "lcd"))
tibble::as_tibble(tmp)
}

lcd_get <- function(station, year, overwrite = FALSE, ...) {
Expand Down
3 changes: 0 additions & 3 deletions man/lcd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3b1a78

Please sign in to comment.