Dear Jan,
I made a pull request to support things like
?- use_module(library(r/r_call)).
true.
?- A ← {y = 10; x = 2*y; x}.
A = [20].
in rserve_client. It’s the typical way in R to run calculations in several steps (e.g., in function bodies).
Best wishes,
Matthias