Skip to content

Commit fc0583a

Browse files
committed
forward method instead of NextMethod
1 parent 72900bb commit fc0583a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/summaries.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ print.units = function (x, ...) {
2424
cat("Units: ", paste0(gr[1], as.character(attr(x, "units")), gr[2]), "\n", sep = "")
2525
x_next <- drop_units(x)
2626
attr(x_next, "pillar") <- NULL
27-
NextMethod(x=x_next)
27+
print(x_next, ...)
2828
} else {
2929
cat(format(x, ...), "\n", sep="")
3030
}

0 commit comments

Comments
 (0)