digital-wellbeing / platform-study-rr

0 stars 0 forks source link

Can't select columns that don't exist. #7

Closed mvuorre closed 2 months ago

mvuorre commented 2 months ago

https://github.com/digital-wellbeing/platform-study-rr/blob/a4287b0ffaa2b96f61b4f23d4928cea48c95bd76/0_generateSyntheticData.qmd#L474

🚀 quarto render 0_generateSyntheticData.qmd

processing file: 0_generateSyntheticData.qmd
1/41
2/41 [opts]
3/41
4/41 [load-libraries]
5/41
6/41 [custom-functions]
7/41
8/41 [load-data]
9/41
10/41 [sim-parameters]
11/41
12/41 [sim-intake]
13/41
14/41 [sim-playhistory]
15/41
16/41 [sim-dropout]
17/41
18/41 [sim-genres]
19/41
20/41 [sim-nintendo]
21/41
22/41 [sim-xbox]
23/41
24/41 [sim-steam]
25/41
26/41 [sim-ios]
27/41
28/41 [sim-android]
29/41
30/41 [sim-panel-data]
Error in `select()`:
! Can't select columns that don't exist.
✖ Column `PID` doesn't exist.
Backtrace:
 1. dplyr::select(...)
 2. dplyr:::select.data.frame(...)

Quitting from lines 469-507 [sim-panel-data] (0_generateSyntheticData.qmd)
Execution halted
nballou commented 2 months ago

weird, working fine on my end - are you using "SV_8wZ57koQLdwVN1c" for the panel survey ID?

rpsychologist commented 2 months ago

Can confirm that updating the ID fixes the issue

https://github.com/digital-wellbeing/platform-study-rr/blob/a4287b0ffaa2b96f61b4f23d4928cea48c95bd76/.Renviron.example#L15

nballou commented 2 months ago

yes, apologies that that was incorrect in the example - now updated in .Renviron.example as well