Skip to content

dataRetrieval

2.7.27Package record

Retrieval Functions for USGS and EPA Hydrology and Water Quality Data

7packages dependsuggested by 2
62.7Kdownloads / year
33.4%test coverage
13/13flavors OK

Overview

About

Collection of functions to help retrieve U.S. Geological Survey and U.S. Environmental Protection Agency water quality and hydrology data from web services.

Changes in 2.7.27
  • All NWIS functions will now error out by default. NWIS servers will be taken offline February 22nd, 2027. Use override_error = TRUE to temporarily override this error.
  • Added sublocation_identifier parameter to read_waterdata_field_measurements and read_waterdata_field_meta.
  • Added method_category parameter to read_waterdata_continuous.
  • Updated Water Data API informational links to v1.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.7.27
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 2.7.27Citation fileYes · software entry only
Help pages
84 (13 internal)includes a package overview page
Examples that run
28%19 run in a plain check (6 of them under a condition) · 38 only when donttest examples are enabled (R CMD check --as-cran) · 8 never run · 4 hold no code
Exported functions with examples
92%
Documented parameters
100%
Return-value docs
59%
Help pages citing references
0%

Downloads

62.7K
CRAN downloads in the past year
Rank #1,610 · ~172/day · ~5.2K/mo
Daily download trend is not available in this view yet.
6.3K30 days
14.2K90 days
62.7K1 year
Compare downloads with other packages →
Also on1.9K r2u19 autocran2.7K conda_forge167 c2d4u

Repository

335Stars
100Forks
6Open issues
1Open PRs
65Releases
5,560Commits
35Commit identities
rusgsrstatsr-package
5,560 commits · Last activity 2026-10-13 · +1.2% stars, 30d · Discussions: 1 post
Responsiveness
How these are sampled
PRs merged (all time)
94%
Median days to close, 50 most recently updated closed issues
10
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-13 · 3042026-10-17 · 335
PracticesBeta

14 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/doi-usgs/dataretrieval on 2026-10-11.

Continuous integration (3)
GitHub ActionsR CMD check workflowGitLab CI

The R CMD check workflow runs on Linux and macOS

Governance and community (2)
Code of conductIssue templates
Docs source (5)
README.RmdpkgdownQuarto project

GitHub Pages site last deployed 2026-10-01 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 1 practice
Lint, format, editor (3)
lintrAirVS Code
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-04-14
    Named in .Rbuildignore: .claude
    Commits: some crediting it in the message, count not recorded
From outside contributors
  • Claude Code
    Pull requests: 4 from outside contributors, first on 2026-04-13, 4 from forks
  • Devin
    Pull requests: 1 from outside contributors, first on 2026-02-11, 1 from forks
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing dataRetrieval adds 45 packages (30 with compiled code, 33 MB of source tarballs). Heaviest: sf 9.3 MB, data.table 5.7 MB, s2 2.8 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
7direct
3indirect
Imports 7
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (15)
Author, Maintainer since 1.4.0 (2014)
Author · added in 2.7.7
Author · added in 2.7.19
Author · added in 2.7.7
Author · added in 2.0.0
Author · added in 2.5.10
Author · added in 2.7.23
Contributor · added in 2.7.26
Contributor · added in 2.7.12
Contributor · added in 2.7.19
Contributor · added in 2.7.17
Contributor · added in 2.5.2
Contributor · added in 2.7.17
Contributor · added in 2.7.0
Listed in earlier versions (2)
no longer listed · 2.5.2 to 2.7.16
Joeseph Zemmels
no longer listed · 2.7.19 to 2.7.22
Releases (44)

Pick two releases to compare their code metrics.

  • 2.7.27Latest
    record
    2026-10-14 · current release · diff ↗ ·
    removed 1 export
    readNWISuse
  • 2.7.26
    record
    2026-09-11 · diff ↗ ·
    removed 3 exports
    readNGWMNdata, readNGWMNlevels, readNGWMNsites
    added 8 exports
    get_monitoring_location_arguments, read_ngwmn, read_ngwmn_lithology, read_ngwmn_providers, read_ngwmn_sites, read_ngwmn_water_level, read_ngwmn_well_construction, read_waterdata_latest_field_measurements
  • 2.7.25
    record
    2026-05-28 · diff ↗ ·
    added 2 exports
    read_waterdata_peaks, read_waterdata_ratings
  • R
    R 4.6.0 released · 2026-04-24
  • 2.7.24
    record
    2026-03-31 · diff ↗
  • 2.7.23
    record
    2026-03-10 · diff ↗ ·
    removed 2 exports
    readNWISgwl, readNWISmeas
    added 5 exports
    read_waterdata_channel, read_waterdata_combined_meta, read_waterdata_field_meta, read_waterdata_stats_daterange, read_waterdata_stats_por
  • 2.7.22
    record
    2026-01-23 · diff ↗ ·
    removed 1 export
    constructUseURL
    added 3 exports
    get_ogc_params, read_waterdata_continuous, read_waterdata_latest_daily
  • 2.7.21
    record
    2025-08-20 · diff ↗ ·
    added 1 export
    read_waterdata_field_measurements
  • 2.7.20
    record
    2025-07-15 · diff ↗ ·
    added 2 exports
    read_waterdata_metadata, read_waterdata_parameter_codes
  • 2.7.19
    record
    2025-06-27 · diff ↗ ·
    removed 2 exports
    check_param, construct_USGS_sample_request
    added 11 exports
    check_OGC_requests, check_waterdata_sample_params, construct_api_requests, construct_waterdata_sample_request, read_waterdata, read_waterdata_daily, read_waterdata_latest_continuous, read_waterdata_monitoring_location, read_waterdata_samples, read_waterdata_ts_meta, summarize_waterdata_samples
  • R
    R 4.5.0 released · 2025-04-11
  • 2.7.18
    record
    2025-02-27 · diff ↗ ·
    added 4 exports
    check_param, construct_USGS_sample_request, read_USGS_samples, summarize_USGS_samples
  • 2.7.17
    record
    2024-10-31 · diff ↗ ·
    removed 1 export
    readNWISqw
    added 2 exports
    parse_WQP, wqp_check_status
  • 2.7.16
    record
    2024-07-30 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.7.15
    record
    2024-02-22 · diff ↗ ·
    added 2 exports
    create_NWIS_bib, create_WQP_bib
Show 41 earlier eventsHide 41 earlier events
  • 2.7.14
    record
    2023-10-05 · diff ↗
  • 2.7.13
    record
    2023-07-20 · diff ↗ ·
    added 1 export
    pcode_to_name
  • R
    R 4.3.0 released · 2023-04-21
  • 2.7.12
    record
    2022-11-24 · diff ↗ ·
    added 1 export
    checkWQPdates
  • R
    R 4.2.0 released · 2022-04-22
  • 2.7.11
    record
    2022-02-18 · diff ↗ ·
    removed 1 export
    checkWQPdates
  • 2.7.10
    record
    2021-09-14 · diff ↗ ·
    added 1 export
    is_dataRetrieval_user
  • 2.7.9
    record
    2021-07-30 · diff ↗
  • 2.7.8
    record
    2021-06-26 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.7.7
    record
    2021-03-06 · diff ↗ ·
    added 2 exports
    findNLDI, get_nldi_sources
  • R
    R 4.0.0 released · 2020-04-24
  • 2.7.6
    record
    2020-03-11 · diff ↗
  • 2.7.5
    record
    2019-06-05 · diff ↗ ·
    added 1 export
    readWQPsummary
  • R
    R 3.6.0 released · 2019-04-26
  • 2.7.4
    record
    2019-03-26 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 2.7.3
    record
    2017-09-28 · diff ↗
  • 2.7.2
    record
    2017-05-23 · diff ↗
  • 2.7.1
    record
    2017-05-19 · diff ↗
  • 2.7.0
    record
    2017-05-16 · diff ↗ ·
    added 9 exports
    addWaterYear, calcWaterYear, importNGWMN, readNGWMNdata, readNGWMNlevels, readNGWMNsites, whatWQPdata, whatWQPmetrics, whatWQPsamples
  • R
    R 3.4.0 released · 2017-04-21
  • 2.6.3
    record
    2016-12-08 · diff ↗
  • 2.5.13
    record
    2016-09-27 · diff ↗
  • 2.5.10
    record
    2016-07-27 · diff ↗ ·
    added 4 exports
    constructUseURL, countyCdLookup, readNWISstat, readNWISuse
  • R
    R 3.3.0 released · 2016-05-03
  • 2.5.5
    record
    2016-04-20 · diff ↗
  • 2.5.3
    record
    2016-03-28 · diff ↗
  • 2.5.2
    record
    2016-03-04 · diff ↗ ·
    added 1 export
    setAccess
  • 2.3.1
    record
    2015-08-14 · diff ↗
  • 2.3.0
    record
    2015-07-07 · diff ↗
  • 2.2.1
    record
    2015-04-28 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 2.2.0
    record
    2015-04-10 · diff ↗ ·
    added 3 exports
    countyCd, stateCd, stateCdLookup
  • 2.1.2
    record
    2015-02-21 · diff ↗ ·
    added 2 exports
    pCodeToName, parameterCdFile
  • 2.1.1
    record
    2015-01-30 · diff ↗ ·
    added 1 export
    checkWQPdates
  • 2.1.0
    record
    2014-12-17 · diff ↗ ·
    added 1 export
    getWebServiceData
  • 2.0.1
    record
    2014-12-03 · diff ↗ ·
    removed 11 exports
    getNWISData, getNWISDataAvailability, getNWISPcodeInfo, getNWISSiteInfo, getNWISSites, getNWISdvData, getNWISqwData, getNWISunitData, getWQPData, getWQPSites, getWQPqwData
  • 2.0.0
    record
    2014-11-14 · diff ↗ ·
    removed 30 exports
    checkStartEndDate, compressData, dataOverview, dateFormatCheck, formatCheckDate, formatCheckParameterCd, getDailyDataFromFile, getDataFromFile, getNWISDaily, getNWISInfo, getNWISSample, getRDB1Data, getUserDaily, getUserInfo, getUserSample, getWQPInfo, getWQPSample, getWaterML1Data, mergeReport, padVariable, populateConcentrations, populateDaily, populateDateColumns, populateParameterINFO, populateSampleColumns, populateSiteINFO, processQWData, readWQPData, removeDuplicates, renameColumns
    added 22 exports
    constructWQPURL, importRDB1, importWQP, importWaterML1, importWaterML2, readNWISdata, readNWISdv, readNWISgwl, readNWISmeas, readNWISpCode, readNWISpeak, readNWISqw, readNWISrating, readNWISsite, readNWISuv, readWQPdata, readWQPqw, renameNWISColumns, whatNWISdata, whatNWISsites, whatWQPsites, zeroPad
  • 1.4.0
    record
    2014-10-13
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2014-10-13
Total releases
44 / 12 yrs
License
CC0 · relicensed from Unlimited | file LICENSE in 2.0.1
Copyright
This software is in the public domain because it contains materials that originally came from the United States Geological Survey, an agency of the United States Department of Interior.
Minimum R
≥ 4.1.0
Download size
4.1 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' entry:

citation("dataRetrieval")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.5066/p9x4l3ge.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for dataRetrieval version 2.7.27 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy