@@ -10,7 +10,7 @@ mainstem_lookup_id_col <- function(type) {
1010# ' (\code{type = "nhdpv2"}) or NHDPlusHR NHDPlusIDs (\code{type = "nhdphr"}).
1111# ' Will use the user data dir indicated by \link{hydrogeofetch_data_dir}.
1212# ' @param type character one of "nhdpv2" or "nhdphr"
13- # ' @inherit download_mainstem_lookup details
13+ # ' @inherit add_mainstems details
1414# ' @return character file path
1515# ' @keywords internal
1616get_mainstem_lookup_path <- function (type ) {
@@ -25,9 +25,8 @@ get_mainstem_lookup_path <- function(type) {
2525
2626# ' @title Download mainstem lookup table from ref_rivers
2727# ' @description Downloads and caches a geoconnex mainstem identifier lookup
28- # ' table on your computer. Source data comes from the ref_rivers GitHub
29- # ' release \href{https://github.com/internetofwater/ref_rivers/releases}{here}.
30- # ' The csv source data is converted to parquet for caching.
28+ # ' table on your computer.
29+ # ' @inherit add_mainstems details
3130# ' @inheritParams get_mainstem_lookup_path
3231# ' @param path character path where the file should be saved. Default is a
3332# ' persistent system data dir as retrieved by \link{hydrogeofetch_data_dir}.
@@ -108,8 +107,11 @@ parse_replacement_uris <- function(x) {
108107# ' @title Add mainstem identifiers
109108# ' @description Joins geoconnex mainstem identifiers onto a table that
110109# ' contains NHDPlusV2 (comid/featureid) or NHDPlusHR (nhdplusid)
111- # ' identifiers using the ref_rivers lookup table. See
112- # ' \link{download_mainstem_lookup} for source data details.
110+ # ' identifiers using a lookup table.
111+ # ' @details Source data comes from the ref_rivers GitHub release
112+ # ' \href{https://github.com/internetofwater/ref_rivers/releases}{here}. The
113+ # ' csv source data is downloaded once, converted to parquet, and cached in
114+ # ' the user data dir indicated by \link{hydrogeofetch_data_dir}.
113115# ' @param x data.frame or sf containing an identifier column joinable to
114116# ' NHDPlusV2 or NHDPlusHR.
115117# ' @param join_col character name of the identifier column in \code{x}.
0 commit comments