Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Locked Binding in driver_drake Function #1255

Open
choiHenry opened this issue May 15, 2024 · 3 comments
Open

Issue with Locked Binding in driver_drake Function #1255

choiHenry opened this issue May 15, 2024 · 3 comments

Comments

@choiHenry
Copy link

choiHenry commented May 15, 2024

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.

@choiHenry choiHenry changed the title Issues when running driver_drake with xml_suffix arguments Issue with Locked Binding in driver_drake Function May 15, 2024
@Goldfish63
Copy link

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

@Goldfish63
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants