From 5b56a1f2841f20dce8b5733fa4c7938247e02718 Mon Sep 17 00:00:00 2001 From: Michael Jones <michael.jones.gsy@gmail.com> Date: Thu, 13 Apr 2023 21:02:18 +0100 Subject: [PATCH] Fixes error message --- R/dsvg.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/dsvg.R b/R/dsvg.R index 5fc1bfc3..c89af7f5 100644 --- a/R/dsvg.R +++ b/R/dsvg.R @@ -61,7 +61,7 @@ dsvg <- function(file = "Rplots.svg", width = 6, height = 6, bg = "white", abort("`width` must be a scalar positive number", call = NULL) } if (!is_valid_number(height) || height <= 0) { - abort("`width` must be a scalar positive number", call = NULL) + abort("`height` must be a scalar positive number", call = NULL) } if (!is_valid_string_non_empty(bg)) { abort("`bg` must be a non-empty scalar character", call = NULL)