Closed Youyi77 closed 8 months ago
I've encountered a very similar issue. These issues all occur when running module_energy_L210.resources
. I'm not sure if your bug and mine are the same, and the error message I received is:
[1] "module_energy_L210.resources" Error in
mutate()
at gcamdata/R/utils-data.R:32:3: i In argument:environCost = if_else(resource == "coal" & region %in% L210.low_reg, 0, environCost)
. Caused by error inif_else()
: !false
must be a vector, notNULL
. Runrlang::last_trace()
to see where the error occurred.
I think this will be fixed if you follow the steps listed here: https://github.com/JGCRI/gcamdata/issues/1242#issuecomment-1585424652
The specific commit that fixes this environCost error in module_energy_L210.resources
is 1d25fbc
(note that this isn't the topic of discussion in the linked issue/comment, but the fix to this issue is also contained in that branch on my forked repo)
Echoing Page's point, here is another way to solve it! https://github.com/JGCRI/gcamdata/issues/1252#issuecomment-2016338207
Hi everyone! I am new to GCAM. While I was running driver_drake() for the first time, I encountered this error: I didn't change any background data. Not sure how to debug this. Thank you!