From 9a70789bf4b7182eb92ac54ce43a0e41b5e297eb Mon Sep 17 00:00:00 2001 From: Stephanie Reinders Date: Fri, 18 Aug 2023 11:24:29 -0500 Subject: [PATCH] Fixed devtools::check() warning in ThinText.R - Deleted library call of magick - Added magick:: before image_read and image_write --- R/ThinText.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/R/ThinText.R b/R/ThinText.R index e768e2b3..d0f55ff0 100644 --- a/R/ThinText.R +++ b/R/ThinText.R @@ -26,15 +26,14 @@ #' @export readPNGBinary = function(path, cutoffAdjust = 0, clean = TRUE, crop = TRUE, inversion = FALSE) { - library(magick) message(paste0('path in readPNGBinary: ', path)) if(endsWith(path, "RData") || endsWith(path, "rda")){ load(path) f <- file.path(tempdir(), "temp_png") - magick_img <- image_read(magick_image) + magick_img <- magick::image_read(magick_image) - image_write(magick_img, path = f, format = "png") + magick::image_write(magick_img, path = f, format = "png") img = png::readPNG(f) }else{