set_moodle_credentials | R Documentation |
Create a credential file for moodle login
set_moodle_credentials(url = NULL, user = NULL, overwrite = FALSE)
url |
URL of the moodle server |
user |
moodle username |
overwrite |
overwrite existing file |
Prompts user for moodle password and creates a credential
file in the users home directory
(.assessr_moodle_cred
). This way the user can run scripts
to import data without having to log in each time. It will test
the validity of the credentials before storing them.
You only need to run this function once. As long as the credentials are set correctly, any subsequent logins will be performed on demand without prompting for username or password.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.