From 8592fd315b4caead99bc4835445ce94571639407 Mon Sep 17 00:00:00 2001 From: Maximilian Muecke Date: Sun, 17 Nov 2024 20:23:11 +0100 Subject: [PATCH] fix: add space after comma in `require_namespaces()` --- R/require_namespaces.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/require_namespaces.R b/R/require_namespaces.R index c7d26287..230237cf 100644 --- a/R/require_namespaces.R +++ b/R/require_namespaces.R @@ -30,7 +30,7 @@ require_namespaces = function(pkgs, msg = "The following packages could not be l if (quietly) { return(FALSE) } - msg = sprintf(msg, paste0(pkgs[ii], collapse = ",")) + msg = sprintf(msg, toString(pkgs[ii])) stop(errorCondition(msg, packages = pkgs[ii], class = "packageNotFoundError")) } else if (quietly) { return(TRUE)