Skip to content

Commit

Permalink
strip sf class in [.sf in case of sf-unaware; #2131
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jul 27, 2024
1 parent 0844dfd commit 70d0318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ st_sf = function(..., agr = NA_agr_, row.names,
} else
structure(x, class = setdiff(class(x), "sf"))
} else
NextMethod()
structure(NextMethod(), class = setdiff(class(x), "sf"))
}

#' @export
Expand Down

0 comments on commit 70d0318

Please sign in to comment.