Skip to content

Commit

Permalink
Merge branch 'main' of github.com:GlobalEcologyLab/poems into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	R/Generator.R
  • Loading branch information
seanhaythorne committed Mar 15, 2021
2 parents f1b945b + 558775d commit 6b57f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Generator.R
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Generator <- R6Class("Generator",
} else if (!is.list(distr_params) || !all(expected_distr_params %in% names(distr_params))) {
stop(sprintf("The distribution parameters should be a list containing %s distribution parameters: %s", distr_type, paste(expected_distr_params, collapse = ", ")), call. = FALSE)
}
if (!is.null(sample) && !(all(unlist(lapply(sample, is.numeric)) | unlist(lapply(sample, is.character))))) {
if (!is.null(sample) && !(all(unlist(lapply(sample, is.numeric)) | unlist(lapply(sample, is.character))))) { #
stop("The sample attribute(s) should be parameter name string(s) or numeric", call. = FALSE)
}
if (!is.null(random_seed) && !is.numeric(random_seed)) {
Expand Down

0 comments on commit 6b57f1f

Please sign in to comment.