mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 05:07:30 +02:00
linting
This commit is contained in:
parent
a0730cb41c
commit
9e33057c06
32 changed files with 456 additions and 340 deletions
|
|
@ -1,20 +1,22 @@
|
|||
#' Convenience function to download complete instrument, using token storage in keyring.
|
||||
#' Convenience function to download complete instrument, using token storage
|
||||
#' in keyring.
|
||||
#'
|
||||
#' @param key key name in standard keyring for token retrieval.
|
||||
#' @param uri REDCap database API uri
|
||||
#' @param instrument instrument name
|
||||
#' @param raw_or_label raw or label passed to `REDCapR::redcap_read()`
|
||||
#' @param id_name id variable name. Default is "record_id".
|
||||
#' @param records specify the records to download. Index numbers. Numeric vector.
|
||||
#' @param records specify the records to download. Index numbers.
|
||||
#' Numeric vector.
|
||||
#'
|
||||
#' @return data.frame
|
||||
#' @export
|
||||
read_redcap_instrument <- function(key,
|
||||
uri,
|
||||
instrument,
|
||||
raw_or_label = "raw",
|
||||
id_name = "record_id",
|
||||
records = NULL) {
|
||||
uri,
|
||||
instrument,
|
||||
raw_or_label = "raw",
|
||||
id_name = "record_id",
|
||||
records = NULL) {
|
||||
REDCapCAST::read_redcap_tables(
|
||||
records = records,
|
||||
uri = uri, token = keyring::key_get(key),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue