set_moodle_credentials: Create a credential file for moodle login

View source: R/moodle.R

set_moodle_credentialsR Documentation

Create a credential file for moodle login

Description

Create a credential file for moodle login

Usage

set_moodle_credentials(url = NULL, user = NULL, overwrite = FALSE)

Arguments

url

URL of the moodle server

user

moodle username

overwrite

overwrite existing file

Details

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.


dalejbarr/assessr documentation built on Jan. 25, 2024, 10:47 p.m.