Skip to contents

tidydrfrost allows you to automate and complete Dr Frost Maths tasks using R. This allows points and mastery to be quickly and easily gained.

Installation

You can install the development version of tidydrfrost from GitHub with:

# install.packages("devtools")
devtools::install_github("ashbythorpe/tidydrfrost")

Using the package

Interacting with Dr Frost Maths is very simple.

The package revolves around a single function:

This function will perform all tasks that have been implemented. Each task awards a certain number of points. Alternatively, you can specify the tasks to complete:

perform_tasks(c("addition_subtraction", "multiplication"))

For a more controlled approach to specifying tasks, use the dr_frost_tasks() function.

tasks <- dr_frost_tasks(exclude = "division")
perform_tasks(tasks)

Currently the following tasks have been implemented:

print(dr_frost_tasks(), n = Inf)

Logging in

For the perform_tasks() function to work, you need to specify a Dr Frost Maths account.

perform_tasks(
  email = "YOUR-EMAIL",
  password = "YOUR-PASSWORD"
)

If you don’t want to specify this each time you use the function, use the dr_frost_account() function. This uses keyring as its backend, allowing your credentials to be securely stored between sessions.

dr_frost_account("YOUR-EMAIL")

Once you have stored your account, the perform_tasks() function can be called without having to specify an email or password.