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

parse_spc() should account for uppercase arguments #321

Closed
andreranza opened this issue Jun 9, 2024 · 0 comments · Fixed by #322
Closed

parse_spc() should account for uppercase arguments #321

andreranza opened this issue Jun 9, 2024 · 0 comments · Fixed by #322

Comments

@andreranza
Copy link
Collaborator

library(seasonal)
packageVersion("seasonal")
#> [1] '1.9.0.9002'

text <- '
  SERIES{
  TITLE = "Commercial and industrial machinery and equipment (except automotive and electronic) repair and main"
  START = 2014.01
  PERIOD = 12
  SAVE = (A1 B1)
  PRINT = BRIEF
  NAME = "8081130000 - HE"
  FILE = "seasonal/tests/nocran/spc/x11_m1r.dat"
}'

pp.cap <- seasonal:::parse_spc(text)

# the following call is found in import.spc. If the arguments are UPPERCASE it
# returns `NULL` but, I believe, it should return the filename instead
pp.cap[['series']][['file']] 
#> NULL

pp.cap <- seasonal:::parse_spc(tolower(text))
pp.cap[['series']][['file']] 
#> [1] "\"seasonal/tests/nocran/spc/x11_m1r.dat\""

Created on 2024-06-09 with reprex v2.1.0

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

Successfully merging a pull request may close this issue.

1 participant