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

addScenario- Error in regmatches: subscript out of bounds #83

Open
joeyh5432 opened this issue Aug 4, 2022 · 3 comments
Open

addScenario- Error in regmatches: subscript out of bounds #83

joeyh5432 opened this issue Aug 4, 2022 · 3 comments

Comments

@joeyh5432
Copy link

I'm fairly new to GCAM and rgcam. I'm running into issues with the addScenario function.

When I run addScenario, I get the following error:
prj <- addScenario(conn, 'output.dat','scenario name', 'Main_queries.xml')
Stopped at C:/Users/jared/AppData/Local/Temp/RtmpExFhvg/file25841c5061dc, 1/88:
[XPST0003] Expecting function argument, found ','.
Error in regmatches(query, m)[[1]] : subscript out of bounds

I have tried using the Main_queries.xml from my GCAM output folder. I have also created an XML with a single query using XML Marker. Neither of these worked, and both returned the same error.

Oddly enough, If I don't define the query, the function works.

How can I get the function to work using my desired queries? Any advice would be greatly appreciated.

@Cermouth
Copy link

Hi @joeyh5432 ! Did you solve this problem? I met this too. But it worked well with GCAM v5.4.

@joeyh5432
Copy link
Author

@Cermouth I have not solved the problem, unfortunately. I will try in GCAM v5.4 when I have a chance and see what happens.

@mpuentesnazal
Copy link

Hi! @joeyh5432, I have the same problem, did you find a solution?

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

3 participants