Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show line number in script editor

Is there any way in a standard R environment how to show cursor position (at least line number) in script editor in R? I've tried to look at options but no success.

I am using R for Windows (XP, 7, ..).

like image 474
Tomas Avatar asked Jan 02 '13 13:01

Tomas


People also ask

How do I show line numbers in bash?

In Bash, $LINENO contains the line number where the script currently executing. If you need to know the line number where the function was called, try $BASH_LINENO . Note that this variable is an array.


1 Answers

According to Ben Bolkers' comments, it is not possible in current version of R (until someone hacks it).

Try R studio. It is perfect IDE for R development, I think that it has feature like this.

like image 198
Belphegor Avatar answered Nov 15 '22 05:11

Belphegor