You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this request! I'm just going to expand with some thoughts below.
Running the following multiline code with the webR editor works OK. In other words, it works when the full script is valid R code:
dplyr::tibble(
mtcars
)
The following code indeed does error, but this is to be expected in the current implementation since the script is source()-ed by the webR app when the run button has been pressed.
dplyr::tibble(
Partial execution (leaving the R console with a continue prompt, similar to directly executing the code into the console):
> dplyr::tibble(
+
is a little difficult right now. We explicitly source() the script because for longer R scripts it's possible to run out of space in the R input buffer. Perhaps we should send to console when the length is shorter than the input buffer, and only source() R scripts longer than that, but this would create different behaviours depending on the length of your script - not ideal.
Alternatively, we could chunk longer R scripts into blocks that fit into R's input buffer, then execute the chunks sequentially. This is probably the best option in the long run.
Currently, this just errors
The text was updated successfully, but these errors were encountered: