R Snippet (Remote) does not work with "for" syntax

I use "R Snippet (Remote)" with this script under described.


i <- 0
for (i in 1:5)

R <- R 


However, the error is occured as "ERROR  R Snippet (Remote)  Execute failed: voidEval failed, request status: R parser: syntax error". Same in use "while" and "repeat".

This code work well in "R Snippet (Local)".

Can not the loop code (for, while, repeat..) work in R Snippet (Remote) node?

The R (Remote) nodes run one line at the time, which of course makes it hard to execute code blocks, such as loops. For now I can only suggest removing the line breaks within the code block/loop.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.