Sublime Forum

Running script from cursor until begin script without select lines

#1

Sorry for cross posting…

I am using Sublime to work with R via Repl, all works fine…

But I wonder if its possible run commands lines from cursor until the begin of script without select lines above the cursor…

Because when I select lines above the cursor to run script, the cursor dont back to my last place that I was working and sometimes its dificult find my last place to continue with my work…

I am not expert programer and probably I miss a lot of tips to do it.

Below the cursor exist other command lines that I dont wanna run
Example:

rm(list=ls()) 
library(dplyr)
library(readxl)
library(rtf)
library(ggplot2)
library(data.table)

df=mtcars

View(df)

| #Cursor here, only run codes above it

str(df)
summary(df)
names(df)
0 Likes