Skip to content

Commit

Permalink
fix is/class code for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Aug 19, 2022
1 parent 166139e commit 6d43402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/geometa_mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ convert_metadata <- function(obj, from, to, mappings, verbose = FALSE){
#' @param x a \code{data.frame} containing the metadata mapping rules
#'
registerMappings <- function(x){
if(class(x)!="data.frame"){
if(!is(x,"data.frame")){
stop("The object containing the mapping rules should be a 'data.frame'")
}
.geometa.mappings$rules <- x
Expand Down

0 comments on commit 6d43402

Please sign in to comment.