changedRecords: returns a list of record IDs changed (adds, updates, deletes)

View source: R/changedRecords.R

changedRecordsR Documentation

returns a list of record IDs changed (adds, updates, deletes)

Description

This is a convenience function that scans logs and returns record IDs of changed records.

Usage

changedRecords(rcon, ...)

Arguments

rcon

A redcapConnection object.

...

Arguments passed to exportLogging()

Details

Makes a call to exportLogging with passed arguments. Returns filtered list or records IDs with update, delete or create events.

Value

Returns a list with the elements

updated character vector of updated record IDs
deleted character vector of deleted record IDs
created character vector of created record IDs

Examples

## Not run: 
unlockREDCap(connections = c(rcon = "project_alias"), 
             url = "your_redcap_url", 
             keyring = "API_KEYs", 
             envir = globalenv())

# Changes in last 24 hours     
changedRecords(rcon, beginTime=as.POSIXct(Sys.time()-86400))

## End(Not run)


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