Get the stable version (2.6.13) from CRAN:
install.packages('soilDB', dependencies = TRUE)
Get the development version (2.6.14) from GitHub:
remotes::install_github("ncss-tech/soilDB", dependencies = FALSE, upgrade = FALSE, build = FALSE)
Dylan Beaudette, Jay Skovlin, Stephen Roecker and Andrew Brown (2021). soilDB: Soil Database Interface. R package version 2.6.13. https://CRAN.R-project.org/package=soilDB
- all NASIS queries now use {DBI}, tested to work with {odbc} or
{RSQLite} drivers; replacing {RODBC}
- Install required R packages with
install.packages(c("DBI","odbc","RSQLite"), dependencies = TRUE)
- Install required R packages with
- new methods for connecting to NASIS and querying NASIS data allow
for
dsn
argument to specify a local “static” SQLite file containing NASIS tables.- Default argument
dsn = NULL
uses"nasis_local"
ODBC connection to a local NASIS SQL Server instance
- Default argument
-
SDA_query()
returns atry-error
for queries with invalid syntax or on network error; empty results are an emptydata.frame()
-
SDA_spatialQuery()
can return Soil Survey Areasapolygon
data -
fetchSDA_spatial()
can return STATSGOgsmmupolygon
or Soil Survey Areasapolygon
data; and can join to thelegend
table -
Added several new SDA query methods based on ssurgoOnDemand by Jason Nemecek and Chad Ferguson:
get_SDA_property()
,get_SDA_interpretation()
,get_SDA_muaggatt()
,get_SDA_hydric()
,get_SDA_pmgroupname()
,get_SDA_coecoclass()
- AKSite, Montana RangeDB, and PedonPC 6.x get and fetch methods now use {DBI}+{odbc}
ISSR800.wcs()
andmukey.wcs()
now return a result that inherits fromtry-error
(and a message) if the Web Coverage Service fails
- SDA
- SSURGO Local Geodatabases
- ROSETTA
- SSURGO/KSSL via SoilWeb
- NASIS WWW interface
- SCAN/SNOTEL
- Henry Mount Soil and Water Database
- NASIS local database
fetchNASIS
- NEW: Argument
dsn
to specify path to connect to alternate (SQLite) data sources with NASIS schema - NEW:
dbConnectNASIS
(aliasNASIS()
) - create a DBIConnection to local NASIS database - NEW:
dbQueryNASIS
- query NASIS local database (and close connection withclose=TRUE
) - NEW:
createStaticNASIS
- create list of NASIS tables or write to SQLite
- SoilGrids