JGCRI / gcamdata

The GCAM data system
https://jgcri.github.io/gcamdata/
Other
43 stars 26 forks source link

Issue with Locked Binding in `driver_drake` Function #1255

Open choiHenry opened 4 months ago

choiHenry commented 4 months ago

Hi I am currently watching a video named GCAM 6.0 gcamdata User Modified Functions and replicating the code shown in the video.

When I tried

driver_drake(user_modifications = c("usermod_fert"), xml_suffix = "_1")

I received this error message:

Error in xml.XML_SUFFIX <<- xml_suffix : 
  cannot change value of locked binding for 'xml.XML_SUFFIX'

I believe the reason for this error is that the xml.XML_SUFFIX variable is locked when I load gcamdata using:

devtools::load_all()

I'd appreciate any comments or suggestions on how to resolve this issue.

Thanks.

Goldfish63 commented 3 months ago

Hi, I also encountered the same problem as yours. Have you solved this issue? Thanks a lot!

Goldfish63 commented 3 months ago

I tried to change [xml_suffix = "_1"] into [xml.XML_SUFFIX = "_1"], and I recieved this error messeage:

Error in driver_drake(user_modifications = c("usermod_fert"), xml.XML_SUFFIX = "_1", : Unfound inputs not marked as from file: inst/extdata/energy/A322.subsector_shrwt, inst/extdata/common/GCAM_region_names in usermod_fert

Goldfish63 commented 3 months ago

I tried to change [xml_suffix = "_1"] into [xml.XML_SUFFIX = "_1"], and I recieved this error messeage:

Error in driver_drake(user_modifications = c("usermod_fert"), xml.XML_SUFFIX = "_1", : Unfound inputs not marked as from file: inst/extdata/energy/A322.subsector_shrwt, inst/extdata/common/GCAM_region_names in usermod_fert

like this: image