R/deprecated_recapProjectInfo.R

Defines functions redcapProjectInfo.redcapApiConnection redcapProjectInfo

Documented in redcapProjectInfo redcapProjectInfo.redcapApiConnection

#' @name deprecated_redcapProjectInfo
#' @title Deprecated Functions
#' @description The `redcapProjectInfo` function has been deprecated to avoid
#'   confusion with the API method now executed by `exportProjectInformation`.
#'   The replacement function is [exportBundle()].
#'   
#' @param rcon A REDCap connection object as generated by `redcapConnection`
#' @param date Logical. If `TRUE`, user expiration dates are converted to 
#'   `POSIXct` objects.
#' @param label Logical.  If `TRUE`, the user form permissions are 
#'   converted to labeled factors.
#' @param meta_data Logical.  Indicates if the meta data (data dictionary) 
#'   should be exported.
#' @param users Logical. Indicates if the users table should be exported.
#' @param instruments Logical. Indicates if the instruments table should be exported.
#' @param events Logical. Indicates if the event names should be exported.
#' @param arms Logical. Indicates if the arms table should be exported.
#' @param mappings Logical. Indicates if the form-event mappings should 
#'   be exported.
#' @param version Indicates if the REDCap version number should be exported.  
#'   Only applicable in REDCap 6.0.0 and higher.
#' @param ... Arguments to be passed to other methods
#' @param v.number A character string given the desired version number should the
#'  API method not be available.
#'  
#' @export 

redcapProjectInfo <- function(rcon, 
                              date = TRUE, 
                              label = TRUE, 
                              meta_data = TRUE, 
                              users = TRUE, 
                              instruments = TRUE,
                              events = TRUE, 
                              arms = TRUE, 
                              mappings = TRUE,
                              version = TRUE, ...){
  UseMethod("redcapProjectInfo")
}

#' @rdname deprecated_redcapProjectInfo
#' @export

redcapProjectInfo.redcapApiConnection <- function(rcon, 
                                                  date = TRUE, 
                                                  label = TRUE, 
                                                  meta_data = TRUE, 
                                                  users = TRUE, 
                                                  instruments = TRUE,
                                                  events = TRUE, 
                                                  arms = TRUE, 
                                                  mappings = TRUE,
                                                  version = TRUE, ...,
                                                  v.number = ""){
  message("exportProjectInfo will be removed in version 3.0.0")
  exportBundle.redcapApiConnection(rcon, 
                                   date, 
                                   label, 
                                   meta_data,
                                   users, 
                                   instruments, 
                                   events, 
                                   arms, 
                                   mappings,
                                   version, 
                                   ..., 
                                   v.number = "")
  
}

Try the redcapAPI package in your browser

Any scripts or data that you put into this service are public.

redcapAPI documentation built on Oct. 17, 2024, 5:07 p.m.