Skip to content

Commit

Permalink
Deprecate fetchRaCA()
Browse files Browse the repository at this point in the history
 - closes #249
  • Loading branch information
brownag committed Dec 21, 2023
1 parent 1487a64 commit 34807ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/fetchRaCA.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#' @title Get Rapid Carbon Assessment (RaCA) data
#'
#' @description Get Rapid Carbon Assessment (RaCA) data by state, geographic bounding-box, RaCA site ID, or soil series query from the SoilWeb API. This interface to the data was an experimental delivery service that does not include the latest soil organic carbon (SOC) measurements.
#' @description
#'
#' **NOTICE:** The SoilWeb snapshot of the RaCA data has been deprecated. The latest version of the data, including values measured by the Kellogg Soil Survey Laboratory, and supporting documentation, are available here: <https://www.nrcs.usda.gov/resources/data-and-reports/rapid-carbon-assessment-raca>. Download link on Box.com: <https://nrcs.app.box.com/s/upx5xhlwis7saunfiysclfrhl5vxxudn>
#'
#' Get Rapid Carbon Assessment (RaCA) data by state, geographic bounding-box, RaCA site ID, or soil series query from the SoilWeb API. This interface to the data was an experimental delivery service that does not include the latest soil organic carbon (SOC) measurements.
#'
#' Please use [current RaCA distribution](https://data.nal.usda.gov/dataset/rapid-carbon-assessment-raca) if you need lab _measured_ SOC rather than SOC estimated by VNIR.
#'
Expand Down Expand Up @@ -36,7 +40,8 @@
#' @export
fetchRaCA <- function(series=NULL, bbox=NULL, state=NULL, rcasiteid=NULL, get.vnir=FALSE) {

# TODO: CY2022 https://github.com/ncss-tech/soilDB/issues/249
# see https://github.com/ncss-tech/soilDB/issues/249
.Deprecated(msg = "The SoilWeb snapshot of the RaCA data has been deprecated. The latest version of the data, including values measured by the Kellogg Soil Survey Laboratory, and supporting documentation, are available here: <https://www.nrcs.usda.gov/resources/data-and-reports/rapid-carbon-assessment-raca>. Download link on Box.com: <https://nrcs.app.box.com/s/upx5xhlwis7saunfiysclfrhl5vxxudn>")

# important: change the default behavior of data.frame
opt.original <- options(stringsAsFactors = FALSE)
Expand Down
2 changes: 2 additions & 0 deletions man/fetchRaCA.Rd

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

0 comments on commit 34807ed

Please sign in to comment.