Skip to content

Commit

Permalink
fix #377 add eg and description to year param in buoy() that special …
Browse files Browse the repository at this point in the history
…value 9999 gives most recent data
  • Loading branch information
sckott committed Nov 13, 2020
1 parent 06d49e5 commit 3d0101d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 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.2.1.91
Version: 1.2.1.93
License: MIT + file LICENSE
Encoding: UTF-8
Language: en-US
Expand Down
7 changes: 6 additions & 1 deletion R/buoy.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#' Required
#' @param buoyid Buoy ID, can be numeric/integer/character. Required
#' @param datatype (character) Data type, one of 'c', 'cc', 'p', 'o'. Optional
#' @param year (integer) Year of data collection. Optional
#' @param year (integer) Year of data collection. Optional. Note there is
#' a special value `9999` that, if found, contains the most up to date
#' data.
#' @param refresh (logical) Whether to use cached data (`FALSE`) or get
#' new data (`FALSE`). Default: `FALSE`
#' @param ... Curl options passed on to [crul::verb-GET]
Expand Down Expand Up @@ -55,6 +57,9 @@
#' z <- leaflet::addTiles(z)
#' leaflet::addCircles(z, ~lon, ~lat, opacity = 0.5)
#' }
#'
#' # year=9999 to get most current data - not always available
#' buoy(dataset = "swden", buoyid = 46012, year = 9999)
#'
#' # Get available buoys
#' buoys(dataset = 'cwind')
Expand Down
7 changes: 6 additions & 1 deletion man/buoy.Rd

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

0 comments on commit 3d0101d

Please sign in to comment.