Interface with Google Cloud Document AI API
Overview
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.
- Minor refactoring
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
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%
- Basic usage HTML
- Complex file and folder management HTML
- Configuration HTML
- Correcting text output HTML
- Extracting tables HTML
- Quickstart HTML
- Working with Google Cloud Storage HTML
Downloads
Repository
- 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
Forks over time
Releases over time
Issues over time
Commits over time
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.
The R CMD check workflow runs on Linux, macOS and Windows
Show all practicesHide 2 practices
Dependencies
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.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.0Latest
- RR 4.5.0 released · 2025-04-11
- 1.0.12024-11-13 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.0.02024-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 CRAN2023-09-07
- 0.9.92023-09-07 · diff ↗ ·
added 8 exports
dai_notify, get_processor_info, get_processor_versions, get_processors, is_colour, make_hocr, merge_shards, redraw_blocks - RR 4.3.0 released · 2023-04-21
- archivedRemoved from CRAN2023-03-16issues were not corrected in time
- RR 4.2.0 released · 2022-04-22
- 0.9.02021-06-11
- RR 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")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.
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.