changedRecords function

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

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

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

changedRecords(rcon, ...)

Arguments

  • rcon: A redcapConnection object.
  • ...: Arguments passed to exportLogging()

Returns

Returns a list with the elements

updatedcharacter vector of updated record IDs
deletedcharacter vector of deleted record IDs
createdcharacter vector of created record IDs

Details

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

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)
  • Maintainer: Shawn Garbett
  • License: GPL-2
  • Last published: 2024-10-17