The primary objective of these patches is to make the package more robust to not having suggested packages available.
magrittr from suggested
dependencies.fs from suggested dependencies. Examples and
vignettes now use base R’s list.files() instead of
fs::dir_tree().roxygen2::roxygenize() instead of
devtools::document() when documenting generated data
packages.R CMD build in the generated package vignette
example instead of devtools::build().roxygen2 and the roxygen2 configuration field to
generated data package DESCRIPTION files so documentation tooling is
declared explicitly.DESCRIPTION.devtools::document() in
build_r_data_package() when devtools is not available.test-build_r_pkg.R expectations based on
devtools availability.Fix issue in test-export.R - it could/would fail if there was a time out related to CURL. Fix looks for an error and if the error is curl related the testing is skipped. Other errors will still be thrown.
archer01_csv <- export_core(uri = ‘https://bbmc.ouhsc.edu/redcap/api/’, token = ‘9A81268476645C4E5F03428B8AC3AA7B’) Getting Project Info Error in curl::curl_fetch_memory(uri, handle = h) : Timeout was reached [bbmc.ouhsc.edu]: Connection timed out after 10001 milliseconds Calls: export_core … export_content ->
-> raise_libcurl_error Execution halted
|> operator so
that the package code has more backward compatibility.as.data.table only return data.frames. End users
can then coerce the data.frame to a tibble or data.table if they
prefer.improved the internal read_text function’s checking
of the Content-Type from the raw data.
formatting of data from json
col_type handling of checkboxes
col_type correctly sets character instead of factor for “completed” fields
format_record a S3 generic.
record no longer exists, use the generic argument
xrcer_rccore object
so the metadata or the col_type does not need
to be explicitly defined.format_record so columns not explicitly
defined in the col_type are returned. Prior version would
have omitted the columns. This also allows for redcap_*
columns to pass through (#9)Initial release.