this might be nastily easy to answer:
How do I execute folded coded and in particular functions, for-loops, and alike in RStudio?
I have perused the documentary pages twice. nada.
EDIT: But that doesn't work: If I execute the assign of a function:
ff <- function(x) {x+1 return(x)}
I get this return in non-folded manner: strg+enter
ff <- function(x) {x+1 + return(x)}
and this when I execute the folded lines by strg+enter
> return(x)}
> Error: unexpected '}' in "return(x)}"+ return(x)}