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)