This is a new release.
It incorporates recent changes in the Document AI API, notably the structural shift from several endpoints to one endpoint with multiple processors. Google now appears to consider the service as mature, so a major release of daiR
appears appropriate.
Main package modifications:
Added several processor-related functions: list_processor_types()
, create_processor()
, enable_processor()
, disable_processor()
, and delete_processor()
.
Added get_text()
and get_tables()
as parsimonious replacements of text_from_dai_response()
, text_from_dai_file()
, tables_from_dai_response()
and tables_from_dai_file()
.
Added get_entities()
and draw_entities()
to make use of Document AI's new form parser processor.
Removed dai_tab_sync()
and dai_tab_async()
following Google's discontinuation of the v1beta2 endpoint on 31 January 2024.
Modified the parameters of the draw*()
functions for better consistency with other functions.
Renamed the .R
files and regrouped the functions.
There were no ERRORs or WARNINGs or NOTEs.
I am not aware of any downstream dependencies.
This is a resubmission.
This is a new submission.
The package was archived in March after issues were not addressed in time. The issues have since been addressed and the package has been developed further as follows:
draw_
family of functions now allows the user to customize the colour and line width of bounding boxes.build_token_df()
and build_block_df()
now include confidence scores in the output, allowing for filtering.There were no ERRORs or WARNINGs.
There was 1 NOTE:
I am not aware of any downstream dependencies.
This is a resubmission. In this version I have addressed Gregor Seyers comments. I have:
devtools::check(cran=TRUE)
throws an error if I do. \value
to all .Rd files that didn't have it and reviewed all \value
entries to make sure they communicate the structure/class and meaning of the output,
including in the places where no value is returned. .auth
object on load to store access tokens ---
was borrowed from a set of large R packages currently on CRAN, notably
'bigRQuery' and
'googledrive'.
This led me to believe that CRAN makes exceptions for credential-storing functions.
My new authentication solution works, but in case it breaks, it would be useful to know
whether CRAN does indeed allow this particular operation. (I'm assuming the
maintainers of the other packages use it for good reason.)I also made some additional changes. I have:
dai_has_token()
and dai_deauth
) that are redundant under
the new authentication solution.create_folder()
) that I found on closer inspection to be
unnecessary.There were no ERRORs or WARNINGs.
There was 1 NOTE on rhub and WinBuilder:
I am not aware of any downstream dependencies.
This is a first submission.
There were no ERRORs or WARNINGs.
There was 1 NOTE on rhub and WinBuilder:
These are proper names.
I am not aware of any downstream dependencies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.