diff --git a/R/rstudioapi.R b/R/rstudioapi.R index b663e5b..5fdb3bc 100644 --- a/R/rstudioapi.R +++ b/R/rstudioapi.R @@ -179,7 +179,7 @@ stream_selection_impl <- function(selection, context, pal, n_lines_orig, remaind # unpadded version to remove unneeded newlines rstudioapi::modifyRange( selection$range, - string <- sub("\n$", "", paste0(output_lines, remainder)), + sub("\n$", "", paste0(output_lines, remainder)), context$id )