Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
lukasmartig
Contributor
Contributor

Getting weird output when using SSE-R-Plugin from within a data table

Hello,

I have a simple data table in Qlik with 1 column, say Var1, having entries 1, 2, 3, ... , 10.

Now I want to create a 2nd column, say VarR, that is identical to Var1, but is created with the SSE-R-Plugin.

I tried several commands, each with questionable outcomes:

A) = R.ScriptEvalEx('N', 'q$v1', Var1 as v1) returns an error in Qlik

B) = R.ScriptEvalEx('N', '1:10', Var1 as v1) gives the desired result, but is hard-coded

C) = R.ScriptEvalEx('N', 'saveRDS(q$v1, "test_data.rds"); 1:10', Var1 as v1) returns a column with 1s. In addition, the saved data set on the server is NULL

Does anyone know how to deal with this issue and how to get the right result? See also https://github.com/qlik-oss/sse-r-plugin/issues/61 for some images.

By the way: I know that I can simply copy the column from within Qlik, but I want to do it using the plugin as my main task is far more complex than the example above.

Regards, Lukas

Labels (1)
0 Replies