Good morning GCAM team,
I'm trying to get the United Kingdom broken out from the EU in GCAM v7. I've used the gcambreakout package, creating a new region called United Kingdom (ID 33) with only the UK pulled out from EU-15 (ID 13). This runs successfully.
Now, when running driver() in GCAM Data System v5.1, which worked before the region breakout, I get the following error. Any advice on this would be really helpful.
.
.
.
[1] "module_energy_L154.transportation_UCD"
[1] "- make 79.01"
[1] "module_energy_L2011.ff_ALL_R_C_Y"
[1] "- make 0.30"
[1] "module_energy_L202.Ccoef"
[1] "- make 0.02"
[1] "module_energy_L210.resources"
Error in mutate() at ei-gcamdata/R/utils-data.R:32:3:
ℹ In argument: environCost = if_else(resource == "coal" & region %in% L210.low_reg, 0, environCost).
Caused by error in if_else():
! false must be a vector, not NULL.
Run rlang::last_trace() to see where the error occurred.
[Update]
This error is still occurring even after I've reverted the changes to the input data. Could it be something to do with the R packages that needed to be updated for gcambreakout?
Good morning GCAM team,
I'm trying to get the United Kingdom broken out from the EU in GCAM v7. I've used the gcambreakout package, creating a new region called United Kingdom (ID 33) with only the UK pulled out from EU-15 (ID 13). This runs successfully.
Now, when running driver() in GCAM Data System v5.1, which worked before the region breakout, I get the following error. Any advice on this would be really helpful.
.
.
.
[1] "module_energy_L154.transportation_UCD"
[1] "- make 79.01"
[1] "module_energy_L2011.ff_ALL_R_C_Y"
[1] "- make 0.30"
[1] "module_energy_L202.Ccoef"
[1] "- make 0.02"
[1] "module_energy_L210.resources"
Error in
mutate()at ei-gcamdata/R/utils-data.R:32:3:ℹ In argument:
environCost = if_else(resource == "coal" & region %in% L210.low_reg, 0, environCost).Caused by error in
if_else():!
falsemust be a vector, notNULL.Run
rlang::last_trace()to see where the error occurred.[Update]
This error is still occurring even after I've reverted the changes to the input data. Could it be something to do with the R packages that needed to be updated for gcambreakout?