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

Column `latitute` doesn't exist #44

Closed svenvanderburg closed 1 year ago

svenvanderburg commented 1 year ago

When trying to activate 2023-01-30-ds-sklearn workshop I get the following error message:

Address field is set to `online`, assuming virtual workshop.
Generating communication document(s) for 2023-01-30-ds-sklearn
Generating planning document(s) for 2023-01-30-ds-sklearn
Generating debriefing document(s) for 2023-01-30-ds-sklearn

Error in `dplyr::select()`:
! Can't subset columns that don't exist.
✖ Column `latitude` doesn't exist.
---
Backtrace:
 1. base::source("~/projects/traininginfra/test/activate_workshops.R")
 5. traininginfrastructure::workshop_activate(data)
      at traininginfra/test/activate_workshops.R:3:0
 6. traininginfrastructure::create_files(info = activews, folder = tempname)
 7. traininginfrastructure:::create_data_file(info, folder)
 9. dplyr:::select.data.frame(...)
bvreede commented 1 year ago

Ack. What workflow did you use? The column latitude is generated in get_future_workshops(). Can you run this on your dataset, and then try again?

For reference, this is the workflow I use:

data <- read_from_file(2023)
data <- get_future_workshops(data)
activate_workshops(data)
svenvanderburg commented 1 year ago

Ah, I didn't run get_future_workshops() apparently! Now it works :)

svenvanderburg commented 1 year ago

I suggest to make activate_workshops fail when get_future_workshops was not run in the step before.

bvreede commented 1 year ago

yep, good one! (and it's workshop_activate I now realize 😅 I was typing from memory)