Skip to content

Commit

Permalink
project columns yet to be
Browse files Browse the repository at this point in the history
ref #410
  • Loading branch information
wibeasley committed Aug 25, 2022
1 parent 661e57e commit cf5fe1b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
16 changes: 15 additions & 1 deletion R/redcap-project-info-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
#' * `elapsed_seconds`: The duration of the function.
#'
#' @details
#'
#' **Timezones**
#'
#' Several datetime variables are returned, such as the project's
#' `creation_time`. For the time to be meaningful, you'll need to set
#' the time zone because this function uses [readr::read_csv()],
Expand All @@ -51,6 +54,16 @@
#' section of readr's
#' [locales](https://readr.tidyverse.org/articles/locales.html) vignette.
#'
#' **Columns not yet added**
#' This function casts columns into data types that we think are most natural to
#' use. For example, `in_production` is cast from a 0/1 to a
#' boolean TRUE/FALSE. All columns not (yet) recognized by REDCapR will be
#' still be returned to the client, but cast as a character.
#' If the REDCap API adds a new column in the future,
#' please alert us in a
#' [REDCapR issue](https://github.com/OuhscBbmc/REDCapR/issues) and we'll
#' expand the casting specifications.
#'
#' @author Will Beasley, Stephan Kadauke
#' @references The official documentation can be found on the 'API Help Page'
#' and 'API Examples' pages on the REDCap wiki (*i.e.*,
Expand Down Expand Up @@ -169,7 +182,8 @@ redcap_project_info_read <- function(
display_today_now_button = readr::col_logical(),
missing_data_codes = readr::col_logical(),
external_modules = readr::col_character(),
bypass_branching_erase_field_prompt = readr::col_logical()
bypass_branching_erase_field_prompt = readr::col_logical(),
.default = readr::col_character()
)

if (kernel$success) {
Expand Down
12 changes: 12 additions & 0 deletions man/redcap_project_info_read.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cf5fe1b

Please sign in to comment.