Retrieves all workout programs stored in the COROS Training Hub, returning a list of two tidy tibbles: a summary of each workout and its constituent steps.
Arguments
- auth
A
coros_authobject fromcoros_login().
Value
A named list with two tibbles:
workoutsOne row per workout with columns
id,name,sport_type,sport_name,duration_min, andn_steps.stepsOne row per step, linked to
workoutsviaworkout_id, with columnsstep_name,duration_s,duration_min,power_low_w,power_high_w, andsets.
Examples
if (FALSE) { # interactive()
auth <- coros_login()
result <- coros_workouts(auth)
result$workouts
result$steps
}
