Skip to contents

Download gocr executable

Usage

gocrDownload(
  version_number = "048",
  overwrite = FALSE,
  target_dir = file.path(system.file(package = "kwb.gocr"), "extdata/gocr")
)

Arguments

version_number

latest version number is "049". However, "048" was used for the development of this R package and is still available (default: "048")

overwrite

if TRUE downloads and overwrites existing gocr executable in target_directory, otherwise not (default: FALSE)

target_dir

target directory (default: file.path(system.file(package = "kwb.gocr"), "extdata/gocr2")

Value

downloads gocr executable to target directory and returns path

Examples

gocrDownload(version_number = "048")
#> Downloading 'gocr048.exe' executable from 'https://www-e.uni-magdeburg.de/jschulen/ocr/gocr048.exe' to 'D:/a/_temp/Library/kwb.gocr/extdata/gocr/gocr048.exe' ... ok. (2.95s) 
#> [1] "D:/a/_temp/Library/kwb.gocr/extdata/gocr/gocr048.exe"
if (FALSE) {
gocrDownload(version_number = "049")
}