Skip to content

Commit

Permalink
Remove {scales} from Suggests (#288)
Browse files Browse the repository at this point in the history
* no {scales}

* test-SDA_spatialQuery: Handle empty result and try-error equivalently

* setup-r-dependencies: R expression needs to be quoted for `upgrade` param
  • Loading branch information
brownag authored Aug 28, 2023
1 parent 0a4806b commit afe04e6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::remotes, local::.
upgrade: TRUE
upgrade: 'TRUE'
needs: check

- name: Install soilDBdata off GitHub
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ License: GPL (>= 3)
LazyLoad: yes
Depends: R (>= 3.5.0)
Imports: grDevices, graphics, stats, utils, methods, aqp, data.table, DBI, curl
Suggests: jsonlite, xml2, httr, rvest, odbc, RSQLite, sf, wk, terra, raster, scales, knitr, rmarkdown, testthat
Suggests: jsonlite, xml2, httr, rvest, odbc, RSQLite, sf, wk, terra, raster, knitr, rmarkdown, testthat
Repository: CRAN
URL: https://ncss-tech.github.io/soilDB/, https://ncss-tech.github.io/AQP/
BugReports: https://github.com/ncss-tech/soilDB/issues
Expand Down
2 changes: 1 addition & 1 deletion R/fetchOSD.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
#' @author D.E. Beaudette, A.G. Brown
#' @seealso \link{OSDquery}, \link{siblings}
#' @export
#' @examplesIf curl::has_internet() && requireNamespace("scales")
#' @examplesIf curl::has_internet()
#' @examples
#' \donttest{
#' library(aqp)
Expand Down
3 changes: 1 addition & 2 deletions R/soilDB-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ NULL
#' @aliases loafercreek gopheridge mineralKing
#' @docType data
#' @keywords datasets
#' @examplesIf require("aqp")
#' @examples
#'
#' \donttest{
#' if (require("aqp") && requireNamespace("scales")) {
#' # load example dataset
#' data("gopheridge")
#'
Expand Down Expand Up @@ -83,7 +83,6 @@ NULL
#' # add diagnostic horizons
#' addDiagnosticBracket(loafercreek[1:10, ], kind='argillic horizon', col='red', offset=-0.4)
#' }
#' }
#'
NULL

Expand Down
2 changes: 1 addition & 1 deletion man/fetchOSD.Rd

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

4 changes: 2 additions & 2 deletions man/loafercreek.Rd

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

3 changes: 2 additions & 1 deletion tests/testthat/test-SDA_query.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ test_that("SDA_spatialQuery() spatial query of MUKEY with multiple features", {

res <- SDA_spatialQuery(x)

skip_if(inherits(res, 'try-error'))
# if the result set is empty rather than an error, SDA_query() result can be NULL
skip_if(is.null(res) || inherits(res, 'try-error'))

expect_equal(nrow(res), 2)

Expand Down

0 comments on commit afe04e6

Please sign in to comment.