mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
Use inherits() for class checking
This commit is contained in:
parent
207fc753a7
commit
d98c70a205
4 changed files with 6 additions and 6 deletions
|
|
@ -15,7 +15,7 @@
|
|||
#'
|
||||
#' @export
|
||||
analyze <- function(preset, progress = NULL) {
|
||||
if (class(preset) != "geposan_preset") {
|
||||
if (!inherits(preset, "geposan_preset")) {
|
||||
stop("Preset is invalid. Use geposan::preset() to create one.")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue