Skip to content

Commit

Permalink
fetchNASIS("component"): test NASIS connection before query
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Dec 2, 2024
1 parent dc11538 commit 4631401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/fetchNASIS_components.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
NASISDomainsAsFactor(stringsAsFactors)
}

# check if NASIS local DB instance/ODBC data source is available
.soilDB_test_NASIS_connection(dsn = dsn)

# ensure that any old hz errors are cleared
if (exists('component.hz.problems', envir = get_soilDB_env())) {
assign('component.hz.problems', value = character(0), envir = get_soilDB_env())
Expand Down

0 comments on commit 4631401

Please sign in to comment.