Your submissions are send to a central database. However, in case that database is not accessible, the data is stored locally. This function uses your plain email to send your records. Note that, once the email is created, the local version of your records is reset. So, if you finally decide to NOT send the email, these records are lost (in this case, call your teachers to recover them, if you have to.)
send_mail_learnr(
address,
subject = "Learnr activity",
file = Sys.getenv("LOCAL_STORAGE")
)
The mail address to send the data to.
The title of the mail.
The file that contains your learnr activity information.
The data are returned invisibly.
In case the MongoDB cannot be reach, learnr events are stored in a local file. This function allows to submits its content through email as an alternate way to collect learnr activity.