Skip to content
Snippets Groups Projects
Commit 45b4b28c authored by Frédéric Grelot's avatar Frédéric Grelot
Browse files

utilisation de methods::is au lieu de class

parent 4a889bec
Branches
Tags
1 merge request!16Resolve "adapt_bd_topo"
......@@ -17,7 +17,7 @@
#' \dontrun{fmt(now - after)}
fmt = function(x) {
if(class(x) == "difftime") {
if (methods::is(x, "difftime")) {
units(x) = "secs"
x = unclass(x)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment