From 56c0b9d14da0ed95c8bb984ea776d0da535c815f Mon Sep 17 00:00:00 2001 From: edzer Date: Wed, 27 Mar 2024 14:02:01 +0100 Subject: [PATCH] fixes #368 --- DESCRIPTION | 2 +- R/plot.R | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index de4c36e..eb22f64 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -41,7 +41,7 @@ SystemRequirements: udunits-2 License: GPL-2 URL: https://r-quantities.github.io/units/, https://github.com/r-quantities/units BugReports: https://github.com/r-quantities/units/issues -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.1 Roxygen: list(old_usage = TRUE) Encoding: UTF-8 Config/testthat/edition: 3 diff --git a/R/plot.R b/R/plot.R index aaf12a6..df66fe6 100644 --- a/R/plot.R +++ b/R/plot.R @@ -121,6 +121,7 @@ hist.units <- function(x, xlab = NULL, main = paste("Histogram of", xname), ...) # the default plotting function take over... xname <- deparse1(substitute(x)) xlab <- .make_unit_label(xlab, x, xname) + x = drop_units(x) NextMethod("hist", xlab=xlab, main=main) }