
Fetch component assessment attempts from SELMA
Source:R/component_attempts.R
selma_component_attempts.RdRetrieves individual assessment attempt records for enrolment components, including grades, dates, and outcomes.
Usage
selma_component_attempts(
con = NULL,
compenrid = NULL,
cache = FALSE,
cache_dir = "selma_cache",
cache_hours = 24,
items_per_page = 100L,
.progress = TRUE
)Arguments
- con
A
selma_connectionobject fromselma_connect(), orNULL(default) to use the stored connection.- compenrid
Filter by enrolment component ID.
- cache
If
TRUE, use RDS caching (defaultFALSE).- cache_dir
Directory for cache files (default
"selma_cache").- cache_hours
Hours before cache is considered stale (default 24).
- items_per_page
Items per API page (default 100).
- .progress
Show progress messages (default
TRUE).
Value
A tibble of component attempt records with columns including
component_attempt_id, compenrid, attemptdate, attemptgrade,
and attemptoutcome.
Examples
if (FALSE) { # \dontrun{
selma_connect()
attempts <- selma_component_attempts()
attempts <- selma_component_attempts(compenrid = "789")
} # }