R/learnitdown_learnr.R
record_learnr.Rd
Record tutorial submissions in a MongoDB database. The function is used by learnitdown learnr tutorials and is not for end-users.
record_learnr(tutorial_id, tutorial_version, user_id, event, data)
user_name(value)
user_email(value)
The identifier of the tutorial.
The version of the tutorial.
The user identifier for this learnr process.
The event that triggers the record, like exercise_submission
or question_submission
A JSON field with event-dependent data content. If NULL
, only
a test to see if the database is responding is performed.
The new value for user name or email (if not provided, the current value is returned).
Nothing. The function is used for its side-effects.