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, ..).
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, ..).
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.
I think there comes a point where - if you're at all serious - you need to consider something more powerful than a text editor. Once you've come to that conclusion, the second thing you need to consider is whether you will be using the platform only for R or for other languages as well.
If you are coding only in R I think RStudio makes a lot of sense and you should certainly try it. For me it didn't quite 'fit' my way of working and in addition to R I use Perl and a bit of Python so I wanted something that could handle multiple languages. I eventually decided on and now use Emacs with ESS. This is not as obviously attractive and modern as RStudio but it is powerful, flexible and runs on just about any machine.
Vincent Goulet's package of Emacs and ESS for Windows is a good way to get started. Originally I liked KomodoIDE but R is not explicitly supported by ActiveState and I couldn't get it to work with R using third-party utilities so in the end I went with ESS. ESS has been a good choice for me.
© 2022 - 2024 — McMap. All rights reserved.
options(editor=...)
... although I don't know whether that actually replaces the script editor or just sets the editor used byfix()
,edit()
etc. I don't actually know where the Windows GUI code lives, otherwise I might go peek at it. – Multitude