View source: R/learnitdown_learnr.R
record_learnr | R Documentation |
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)
tutorial_id |
The identifier of the tutorial. |
tutorial_version |
The version of the tutorial. |
user_id |
The user identifier for this learnr process. |
event |
The event that triggers the record, like |
data |
A JSON field with event-dependent data content. If |
value |
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.
send_mail_learnr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.