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, ..).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With