Skip to content

Commit 7d202f6

Browse files
committed
split tests
1 parent 97f5b5e commit 7d202f6

35 files changed

+234
-252
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ vignettes/.*\.png$
2525
^dev$
2626
^lib$
2727
^\.covrignore$
28+
^vignettes/bondargentina_1\.png$
29+
^vignettes/bondargentina_2\.png$

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 0.1.0
2-
Date: 2024-12-16 23:10:09 UTC
3-
SHA: 0172b7e010c38e32d1ab317eae369384c4cb4255
1+
Version: 5.3.4
2+
Date: 2024-12-17 21:04:41 UTC
3+
SHA: 97f5b5e9d7320a878ddbbd128dc52d8adc40ca0a

DESCRIPTION

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: cpp11tesseract
22
Type: Package
33
Title: Open Source OCR Engine
4-
Version: 0.1.0
4+
Version: 5.3.4
55
Authors@R: c(person("Mauricio", "Vargas Sepulveda",
66
role = c("aut", "cre"),
77
email = "m.sepulveda@mail.utoronto.ca",
@@ -16,12 +16,11 @@ Authors@R: c(person("Mauricio", "Vargas Sepulveda",
1616
person("Munk School of Global Affairs and Public Policy",
1717
role = "fnd")
1818
)
19-
Description: Bindings to 'Tesseract':
20-
Tesseract
21-
(<[https://github.com/tesseract-ocr/tesseract]https://github.com/tesseract-ocr/tesseract>)
22-
is a powerful optical character recognition (OCR) engine that supports over
23-
100 languages. The engine is highly configurable in order to tune the
24-
detection algorithms and obtain the best possible results.
19+
Description: Bindings to 'tesseract':
20+
'tesseract' (<https://github.com/tesseract-ocr/tesseract>) is a powerful
21+
optical character recognition (OCR) engine that supports over 100
22+
languages. The engine is highly configurable in order to tune the detection
23+
algorithms and obtain the best possible results.
2524
License: Apache License (>= 2)
2625
URL: https://pacha.dev/cpp11tesseract/
2726
BugReports: https://github.com/pachadotdev/cpp11tesseract/issues
@@ -43,10 +42,7 @@ Suggests:
4342
knitr,
4443
tibble,
4544
rmarkdown,
46-
testthat (>= 3.0.0),
47-
cpp11poppler
48-
Remotes:
49-
pachadotdev/cpp11poppler
45+
testthat (>= 3.0.0)
5046
Encoding: UTF-8
5147
VignetteBuilder: knitr
5248
Language: en-US

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.1.0
1+
# 5.3.3
22

33
- This is a fork of the original tesseract package made by Jeroen Ooms. The
44
differences are:

R/ocr.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
#' @rdname ocr
2626
#' @references [Tesseract: Improving Quality](https://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality)
2727
#' @examples
28-
#' # Simple example
29-
#' file <- system.file("examples", "wilde.jpg", package = "cpp11tesseract")
28+
#' file <- system.file("examples", "wilde.png", package = "cpp11tesseract")
3029
#' text <- ocr(file)
3130
#' cat(text)
3231
ocr <- function(file, engine = tesseract("eng"), HOCR = FALSE, opw = "", upw = "") {

R/tessdata.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#' @examples
3131
#' # download the french training data
3232
#' \donttest{
33-
#' tesseract_download("fra", model = "best", datapath = tempdir())
33+
#' tesseract_download("fra", model = "best", datapath = tempdir())
3434
#' }
3535
#'
3636
#' if (any("fra" %in% tesseract_info()$available)) {
@@ -80,7 +80,8 @@ tesseract_download <- function(lang, datapath = NULL, model = c("fast", "best"),
8080
#' @examples
8181
#' # download the polytonic greek training data
8282
#' \donttest{
83-
#' tesseract_contributed_download("grc_hist", model = "best", datapath = tempdir())
83+
#' tesseract_contributed_download("grc_hist", model = "best",
84+
#' datapath = tempdir())
8485
#' }
8586
#'
8687
#' if (any("grc_hist" %in% tesseract_info()$available)) {

R/tesseract.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ tesseract <- local({
4545
#' @return no return value, called for side effects
4646
#' @rdname tesseract
4747
#' @param filter only list parameters containing a particular string
48-
#' @examples tesseract_params("debug")
48+
#' @examples
49+
#' tesseract_params("smooth")
4950
tesseract_params <- function(filter = "") {
5051
tmp <- print_params(tempfile())
5152
on.exit(unlink(tmp))

docs/404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)