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

Error: lexical error: invalid char in json text. #15

Closed
sebastianbarfort opened this issue Dec 18, 2015 · 2 comments
Closed

Error: lexical error: invalid char in json text. #15

sebastianbarfort opened this issue Dec 18, 2015 · 2 comments

Comments

@sebastianbarfort
Copy link
Contributor

I seem to be getting an error when running the following code:

library("dkstat")
aulaar_meta <- dst_meta(table = "PRIS61", lang = "da")
aulaar <- dst_get_data(table = "PRIS61", HOVED = "Årsgennemsnit",TID = "2000", lang = "dk")
@krose
Copy link
Contributor

krose commented Dec 18, 2015

The language parameter can only be "da" or "en". I have added a test in the function dst_get_data to make sure you get a better error message if the parameter is invalid.

library("dkstat")
aulaar_meta <- dst_meta(table = "PRIS61", lang = "da")
aulaar <- dst_get_data(table = "PRIS61", HOVED = "Årsgennemsnit",TID = "2000", lang = "da")

@krose krose closed this as completed Dec 18, 2015
@sebastianbarfort
Copy link
Contributor Author

Yes, super. Thanks!

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