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

languageCode as Option #2

Open
grisuf opened this issue Jun 24, 2017 · 1 comment
Open

languageCode as Option #2

grisuf opened this issue Jun 24, 2017 · 1 comment

Comments

@grisuf
Copy link

grisuf commented Jun 24, 2017

Hi
I've got a limesurveyquestionnaire set up in german. Using

options(lsAPIurl = 'https://mylimesurveyinstallation.com/admin/remotecontrol')
s<-12345
options(lsUser = "user")
options(lsPass = "pass")
lsSessionKey("set")
lsGetProperties("question",s,"170")$question

I get

Error in lsAPI(method = method, params = params, lsAPIurl = lsAPIurl) :
Error: Invalid questionid

Using

lsGetProperties("question",s,"170",languageCode="de")$question

works. Is there a way to set the languageCode like with options()?
options(languageCode="de") did not work.

thanks,
grisuf

@grisuf
Copy link
Author

grisuf commented Jun 24, 2017

Using formals() works. But I am not sure, if that is a good idea:

options(lsAPIurl = 'https://mylimesurveyinstallation.com/admin/remotecontrol')
s<-12345
options(lsUser = "user")
options(lsPass = "pass")
lsSessionKey("set")
formals(lsGetProperties)$languageCode<-"de"
lsGetProperties("question",s,"170")$question

Does that cause conflicts?

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

1 participant