The goal of REDCapSync is to encapsulate a REDCap project into a standardized object. R6 gives a way of keeping some elements internal to the object. Behind-the-scenes is an R list where all of the metadata and data is stored.
TEST_CLASSIC <- load_test_project(
project_name = "TEST_CLASSIC", with_data = TRUE)
listviewer::jsonedit(TEST_CLASSIC$.internal)The R6 object contains those things behind-the-scenes but then uses
several to build an environment. This allows TEST$sync() to
update TEST without having to do
TEST <- TEST |> sync_something() |> another_function()
library(REDCapSync)
TEST <- load_test_project(with_data = TRUE)
# Update From REDCap
# Explore Whats Inside
# Generate Outputs