Learn R Programming

redcapAPI (version 2.7.4)

exportVersion: Exports the REDCap Version Number

Description

Version numbers are returned as a character string. This feature is available for REDCap 6.0.0 and higher.

Usage

exportVersion(rcon, ...)

# S3 method for redcapApiConnection exportVersion( rcon, ..., error_handling = getOption("redcap_error_handling"), config = list(), api_param = list() )

Arguments

rcon

A REDCap connection object as generated by redcapConnection

...

Arguments to be passed to other methods.

error_handling

An option for how to handle errors returned by the API. see redcap_error

config

list Additional configuration parameters to pass to POST. These are appended to any parameters in rcon$config.

api_param

list Additional API parameters to pass into the body of the API call. This provides users to execute calls with options that may not otherwise be supported by redcapAPI.

REDCap API Documentation (6.5.0)

This method returns the current REDCap version number as plain text (e.g., 4.13.18, 5.12.2, 6.0.0).

REDCap Version

6.0.0+

Known REDCap Limitations

None

Author

Benjamin Nutter

Details

If this function is used in a version of REDCap that does not support the Export Version Number function, the character string '5.12.2' is returned. This is done solely for the convenience of always returning a value that can be compared against other versions.

References

Please refer to your institution's API documentation.

Additional details on API parameters are found on the package wiki at https://github.com/vubiostat/redcapAPI/wiki/REDCap-API-Parameters