Package: hRvstAPI 0.0.0.9000

hRvstAPI: This is a wrapper for the Harvest REST API v2.

The foremost function of this package is to act as a *convenient* wrapper around the Harvest REST API v2. To that end, the package handles credentials either through the system keyring using the `keyring` package (preferred), or through environment variables written to a local `.Renviron` file. Credential handling can be initiated explicitly, but otherwise happens automatically upon making an API request. This package tries to make accessing the Harvest API as easy as possible. While it does allow some tweaking of the actual HTTP request via function arguments, the primary method for accessing API data is to simply select which resource to query (e.g. "users" will download all users data). *Note, that the default is to only download "active" records.* The reason for this mode of access is that a request usually isn't very big and the typical user will probably want to manipulate the data in a more sophisticated manner for some downstream visualization or other analysis. Building on this premise, the secondary function of this package is to manage the long term storage of API data to minimize remote requests. This is achieved by storing API data in a local SQLite database, for which this package also provides a straightforward way of accessing and updating with new data. There is a companion Shiny application (hRvst) which utilizes this wrapper for Harvest API data access, and perhaps slightly enhances this package.

Authors:Eric Hunt [aut, cre]

hRvstAPI_0.0.0.9000.tar.gz
hRvstAPI_0.0.0.9000.zip(r-4.5)hRvstAPI_0.0.0.9000.zip(r-4.4)hRvstAPI_0.0.0.9000.zip(r-4.3)
hRvstAPI_0.0.0.9000.tgz(r-4.4-any)hRvstAPI_0.0.0.9000.tgz(r-4.3-any)
hRvstAPI_0.0.0.9000.tar.gz(r-4.5-noble)hRvstAPI_0.0.0.9000.tar.gz(r-4.4-noble)
hRvstAPI_0.0.0.9000.tgz(r-4.4-emscripten)hRvstAPI_0.0.0.9000.tgz(r-4.3-emscripten)
hRvstAPI.pdf |hRvstAPI.html
hRvstAPI/json (API)

# Install 'hRvstAPI' in R:
install.packages('hRvstAPI', repos = c('https://eric-hunt.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/eric-hunt/hrvstapi/issues

On CRAN:

14 exports 0.00 score 49 dependencies 1 scripts

Last updated 2 years agofrom:f8e29ed3e7. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 09 2024
R-4.5-winWARNINGSep 09 2024
R-4.5-linuxWARNINGSep 09 2024
R-4.4-winWARNINGSep 09 2024
R-4.4-macWARNINGSep 09 2024
R-4.3-winWARNINGSep 09 2024
R-4.3-macWARNINGSep 09 2024

Exports:.agent.db_path.rds_path.service.urlcheck_credscreate_dbcreate_rdshrvst_acct_idhrvst_reqhrvst_tokenquery_dbset_credsupdate_db

Dependencies:askpassassertthatbitbit64blobcachemclicliprcpp11crayoncurlDBIdplyrfansifastmapfsgenericsgetPassgluehmshttr2lifecyclelubridatemagrittrmemoiseopensslpillarpkgconfigplogrprettyunitsprogresspurrrR6rappdirsreadrrlangRSQLiterstudioapistringistringrsystibbletidyselecttimechangetzdbutf8vctrsvroomwithr