Skip to content

Interface with Google Cloud Document AI API

0packages depend
4Kdownloads / year
32.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.0
  • Minor refactoring

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 221 wordsVignettesYes · 7 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
48 (4 internal)
Examples that run
0%44 never run
Exported functions with examples
94%
Documented parameters
100%
Return-value docs
98%
Help pages citing references
0%

Downloads

4K
CRAN downloads in the past year
Rank #11,744 · ~11/day · ~337/mo
Daily download trend is not available in this view yet.
35930 days
92590 days
4K1 year
Compare downloads with other packages →
Also on107 r2u

Repository

44Stars
4Forks
0Open issues
0Open PRs
2Releases
219Commits
2Commit identities
ocrrgoogle-cloud
219 commits · Last activity 2026-09-16 · Default branch at 1.2.1, ahead of CRAN 1.2.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
15
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-08-08 · 442026-07-07 · 44
PracticesBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/hegghammer/dair on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Governance and community (3)
Code of conductContributing guideIssue templates
Docs source (2)
pkgdown

GitHub Pages site last deployed 2024-11-13

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Research and citation (1)
JOSS paper
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing daiR adds 62 packages (40 with compiled code, 45 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, magick 4.4 MB.

Depends (1)
R >= 4.2.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.9.0 (2021)
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0Latest
    record
    2025-11-18 · current release · diff ↗ ·
    added 2 exports
    get_ids_by_type, get_versions_by_type
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.1
    record
    2024-11-13 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0
    record
    2024-02-12 · diff ↗ ·
    added 10 exports
    .onAttach, create_processor, delete_processor, disable_processor, draw_entities, enable_processor, get_entities, get_tables, get_text, list_processor_types
  • unarchivedReturned to CRAN
    2023-09-07
  • 0.9.9
    record
    2023-09-07 · diff ↗ ·
    added 8 exports
    dai_notify, get_processor_info, get_processor_versions, get_processors, is_colour, make_hocr, merge_shards, redraw_blocks
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2023-03-16
    issues were not corrected in time
  • R
    R 4.2.0 released · 2022-04-22
  • 0.9.0
    record
    2021-06-11
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-06-11
Total releases
5 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.2.0
Download size
4.5 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("daiR")
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

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

Cite the 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-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy