esciencecenter-digital-skills / training-infrastructure

collection of files used in setting up the new training infrastructure
Apache License 2.0
0 stars 0 forks source link

verify data before workshop_activate #47

Closed bvreede closed 1 year ago

bvreede commented 1 year ago

This PR adds a step that verifies whether get_future_workshops() has been run. If not, it runs it, and tells the user to run it next time.

It is useful to run this function before using workshop_activate() because it takes a while to process the data, and otherwise this has to happen for each individual workshop that is prepared. This is why it's not simply included in workshop_activate().

Check the functionality by calling workshop_activate() on data that was only retrieved with read_from_drive():

data <- read_from_drive(2023)
workshop_activate(data)

Closes #44