Skip to Content
0
Aug 30, 2023 at 04:43 PM

R Scripts with Parameters stopped working in SAC

113 Views

Hello,

I have various R-Scripts in use and for a week or so they just stopped working when I try to use parameters.

The R-Visualization is basically just a ggplot where the beginning of the axis should be defined via an input text in the report.

The code when pressing a button is:

var axis = ConvertUtils.stringToNumber(AxisInput.getValue());

RVisualization_1.getInputParameters().setNumber("axis", axis);

In the R-Script there is a simple line:

i <- axis

and after that the ggplot where i is used to define the y-axis...

This did work for a long time now and suddenly I just get some weird errors like this in the console:

image.png

and this in the report

image.png

When I just set i <- 50 in the R-Script it all works just fine.

Anyone can help or do I need to open a ticket for SAP?

Regards

Christian

Attachments

image.png (28.5 kB)
image.png (6.5 kB)