In matlab script editor, we can use double percent symbol to define a region. for example in the following matlab script, two region are defined:
%% region 1
a=1;
b=2;
%% region 2
c=7;
d=5;
The advantage of defining region is that you can just execute one region where the cursor locates rather than the whole script by press ctrl+enter.
if the cursor is at c=7; line, after pressing ctrl+enter, c=7 and d=5 will be executed while a=1 and b=2 will not be executed.
however, I have searched a lot from web to find something equivalent in ESS, there is no results.
There is a command 'eval region' in ESS, but I don't know how to define such a region.
Thanks in advance!