R Observatory
Search
install.packages("daiR")
CRAN 30-day downloads, method
315−13.2% down on the 30 days before, the worse direction
Test coverage, method
33%of lines run by tests

R interface for the Google Cloud Services 'Document AI API' <https://cloud.google.com/document-ai> with additional tools for output file parsing and text reconstruction. 'Document AI' is a powerful server-based OCR service that extracts text and tables from images and PDF files with high accuracy.

Full description

R interface for the Google Cloud Services 'Document AI API' <https://cloud.google.com/document-ai> with additional tools for output file parsing and text reconstruction. 'Document AI' is a powerful server-based OCR service that extracts text and tables from images and PDF files with high accuracy. 'daiR' gives R users programmatic access to this service and additional tools to handle and visualize the output. See the package website <https://dair.info/> for more information and examples.

Maintainer
Thomas Hegghammer
Latest release
18 Nov 2025
First release
11 Jun 2021

Compare with another package

More details
Releases
5
Needs compilation
No
Needs R
>= 4.2.0
Config/testthat/edition
3
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("daiR")
APA
Hegghammer, T. (2025). daiR: Interface with Google Cloud Document AI API (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.daiR
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for daiR version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    1.2.0
    Time taken
    180 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.2.0
    Time taken
    122 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.2.0
    Time taken
    116 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.2.0
    Time taken
    120 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    194 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.0.1
    Time taken
    46 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    186 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    245 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    170 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    170 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.2.0
    Time taken
    46 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    172 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.2.0
    Time taken
    194 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
316−14.8% down on the 30 days before, the worse directionIt is the sum of 2 channels: CRAN and r2u.

CRAN rank

12,623 of 26,530

CRAN

315 downloads in the last 30 days

Rank
12,623 of 26,530
Change
−13.2% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

1 downloads in the last 30 days

Rank
19,986 of 30,526
Change
−87.5% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
21
Dependent packages
0
Suggested by
0
Needs (21)
Installing it adds
62 packages, 44.9 MB of source
Of those, need compilation
40
Optional extras (4)
Functions
78
Public exports
48
Lines of R code
4,801
Median complexity
4
Functions (78)
Size and composition

Lines by kind (12,760)

KindLinesShare
R code4,80138%
Tests5,07740%
Documentation1,70713%
Guides1,1759%

Lines by language

LanguageLinesShare
R9,87177%
Rd1,70713%
Vignettes1,1759%
JSON70.1%

Languages are counted from file extensions.

Files
135
R functions
78
Deprecated functions
6
Complexity
Median
4
Mean
8.83
Highest
40
Median lines per function
35
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
78
Calls
105
Unconnected
17
Groups
1
Growth (5 releases)
Total lines by release
5,365 on 11 Jun 202112,760 on 18 Nov 2025
Release changes

The tests ran and coverage was measured.

Lines run by tests
32.7%
Expressions run by tests
33.7%
Test cases
293
Exports named in tests
85.4%
Coverage by file (11)
Coverage run
Lines counted
1,842
Lines the tests ran
602
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
293
Lines of tests
5,077
Test lines per line of code
1.06
Exports documented
100%
Arguments documented
100%
Return value documented
97.9%
Help pages with examples
91.7%
Examples run in checks
0%
Guides (7)
Other documentation
README
Yes, 221 words
Release notes file
Yes
Help pages
48
Lines of documentation
1,707

Hegghammer / dair on github.com

Stars
44
Forks
4
Open issues
0
Last commit
16 Sep 2026
Activity
Commits
219
Open pull requests
0
Tagged releases
2
Latest tagged release
v0.9.2, 19 Dec 2021
In development
Default branch at 1.2.1, ahead of CRAN 1.2.0 (checked 2026-10-25)
Issues closed in
15 days (median)
Pull requests closed in
–
Pull requests merged
–
Created
4 Mar 2021
Licence file reads as
–
Development practices (10)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows
Governance and communityCode of conduct, Contributing guide, Issue templates
Docs sourcepkgdown
GitHub Pages site last deployed 2024-11-13
CoverageCoverage reporting (Codecov)
CRAN release processcran-comments.md
Research and citationJOSS paper

Method, repository practices

Across Hegghammer

R releases
  • On CRAN
  • Archived
  • Release
0.9.00.9.91.0.01.0.11.2.0BackArchivedArchivedArchived

Archived and back

ArchivedBackCRAN's reasonKind
16 Mar 20237 Sep 2023issues were not corrected in timeChecks not fixed
VersionReleasedREvents
1.2.0 current18 Nov 20254.5.2
1.0.113 Nov 20244.4.2
1.0.012 Feb 20244.3.2
0.9.97 Sep 20234.3.1Back on CRAN 7 Sep 2023
0.9.011 Jun 20214.1.0Archived 16 Mar 2023
“issues were not corrected in time”
Release notes (1.2.0)
  • Minor refactoring