Skip to contents

Syncs with REDCap via project object that user defined with setup_project

Usage

sync(
  project_names = NULL,
  summarize = TRUE,
  hard_check = FALSE,
  hard_reset = FALSE
)

Arguments

project_names

character vector of project project_names previously setup. If NULL, will get all from get_projects()

summarize

Logical (TRUE/FALSE). If TRUE, summarizes data to directory.

hard_check

Will check REDCap even if not due (see sync_frequency parameter from setup_project())

hard_reset

Logical that forces a fresh update if TRUE. Default is FALSE.

Value

invisible return of last project

Details

Syncs all projects by default but can be used to hands-free sync one or defined set projects. This is not intended to return project object. User should use load_project("project_name"). However, by default will invisibly return the last project in the set of project_names.

See also

setup_project for initializing the project object.