Skip to content

Commit

Permalink
hzdesgn argument default: update corresponding to #309
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Feb 25, 2024
1 parent a466959 commit d42043d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/thicknessOf.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#'
thicknessOf <- function(x,
pattern = NULL,
hzdesgn = guessHzDesgnName(x, required = TRUE),
hzdesgn = hzdesgnname(x, required = TRUE),
method = "cumulative",
prefix = "",
thickvar = "thickness",
Expand All @@ -60,6 +60,10 @@ thicknessOf <- function(x,
.internalTHK <- NULL
.interalHZM <- NULL

if (is.null(hzdesgn) || !hzdesgn %in% horizonNames(x)) {
stop("Horizon designation column (", hzdesgn, ") does not exist.")
}

# check inputs
method <- match.arg(tolower(gsub("/", "", method)), c("cumulative", "minmax"))
stopifnot(length(thickvar) == 1)
Expand Down
2 changes: 1 addition & 1 deletion man/thicknessOf.Rd

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

0 comments on commit d42043d

Please sign in to comment.