From 1f83593536b32675d155c2353f1d5e357606bfe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20=22Pach=C3=A1=22=20Vargas=20Sep=C3=BAlveda?= Date: Sun, 4 Aug 2024 14:09:52 -0400 Subject: [PATCH] normalize relative paths so it works on C++ side (#71) --- R/tesseract.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/tesseract.R b/R/tesseract.R index 827a597..89a8235 100644 --- a/R/tesseract.R +++ b/R/tesseract.R @@ -23,7 +23,7 @@ tesseract <- local({ store <- new.env() function(language = "eng", datapath = NULL, configs = NULL, options = NULL, cache = TRUE){ - datapath <- as.character(datapath) + datapath <- normalizePath(as.character(datapath), mustWork = TRUE) language <- as.character(language) configs <- as.character(configs) options <- as.list(options)