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

set_specification doesn't seem to work #41

Open
carlos-saez opened this issue May 28, 2024 · 3 comments
Open

set_specification doesn't seem to work #41

carlos-saez opened this issue May 28, 2024 · 3 comments

Comments

@carlos-saez
Copy link

I was testing the functions in this package and I have a problem with set_specification. When I try to use it to change the specification of some sa item in a workspace I get an error. The following code reproduces the error:

# Create a workspace
jws <- rjdemetra3::.jws_new()
jsap <- rjdemetra3::.jws_sap_new(jws, "jsap1")

# Add a series
ts <- rjd3toolkit::Imports$Spain
rsafull <- rjd3tramoseats::tramoseats_spec("rsafull")
rjdemetra3::add_sa_item(jsap, "sa", x = ts, spec = rsafull)

rjdemetra3::.jws_compute(jws)

# Change specification
newspec <- rjd3tramoseats::tramoseats_spec("rsa0")
rjdemetra3::set_specification(jsap, 1, newspec)    # ERROR!

The error I get when executing the last line is;

Error en .jcall(jsap, "V", "setSpecification", as.integer(idx - 1), jspec): 
  method setSpecification with signature (ILjdplus/sa/base/api/SaSpecification;)V not found

I don't know if it's really a bug or I'm using the function in a wrong way. In the second case, I would appreciate some indications on how to use it properly.

@annasmyk
Copy link
Member

Hi Carlos

did you try with the last version of rjd3 workspace ?
anna

@carlos-saez
Copy link
Author

Hi Anna,

I've tried it now but I get the same error.

Carlos

@TanguyBarthelemy
Copy link
Contributor

Hi Carlos,
That's a Java issue, I'll take a look and get back to you before end of june.

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