[R-SIG-Mac] built-in editor underlining
Graham Watt-Gremm
sunyata at uvic.ca
Sun Sep 17 16:29:52 CEST 2006
Hi there,
I agree with Jörg's approach of using a highly capable external
editor. For longer scripts I also found the R editor to be quite slow
to catch up sometimes. I use jedit to manage my source files for each
of my projects (beautifully handles syntax for all my shell scripts,
sql, latex and R/S code, among many other languages). I also keep an
annotated ``transcript'' of when I am working interactively, for
which chunks of code can be passed from jedit to R. jedit also has a
beautiful project management approach, where you can collect your
different source files into organized sidebars, create a hyperlinked
search result sidebar from a search across all of your source files
in the project or directory, etc. And for those who have called it a
memory hog, it works equally fast on my ti-12in powerbook (640 mb
ram) and my dual G5 (4gb ram). Plus it's free and open source, like R.
cheers
Graham
On 17-Sep-06, at 5:53 AM, Jörg Beyer wrote:
> Hello Parlamis,
>
> a tip regarding syntax highlighting you may (or may not ;-) find
> useful:
> I'm using BBEdit 7.1 to edit my R-files. Of course, as a
> specialized tool,
> it is far superior compared with R.app's built-in editor (no insult
> intended). My workflow of editing-sourcing-editing is quite
> comfortable --
> whether you switch to an internal or an external editor window
> makes no
> difference.
>
> I set the syntax coloring to Tcl, which gives a quite reasonable
> highlighting of R/S code. And hopefully someone comes up with a
> special
> language module in the future. The current version of BBEdit is
> 8.5, and if
> you don't need all its refinements, you can use their free
> TextWrangler,
> which has pretty much the same basic functionality.
>
> Hope that helps
> (not sure, though :-)
>
> Jörg
>
>
> On Sep 17, 2006, at 9:05 PM, Parlamis Franklin wrote:
>
>> Thanks, Simon. Of course I don't think you should do anything that
>> would prohibit sourcing the file (and I guess most would agree).
>>
>> Re: syntax coloring. I've turned it off because, when editing the
>> beginning of a long file, I would get a long delay (multiple seconds)
>> after I entered an open quotes (") as the rest of the document
>> changed color because all quotes were now matched differently. Not
>> sure whether this is a slow implementation of that functionality, or
>> what is to done about it, but for this user at least, the delay issue
>> outweighs any benefit that I could get from syntax coloring.
>>
>> Franklin
>>
>> On Sep 16, 2006, at 4:52 PM, Simon Urbanek wrote:
>>
>>> The build-in editor doesn't store any text attribute changes as the
>>> output is plain text. It does, however, allow text attribute
>>> changes, because they are used e.g. for syntax highlighting.
>>> Strictly speaking the bug is that you can use the <Cmd><U> command
>>> at all.
>>>
>>> Another approach would be to enhance the editor to support RTF
>>> format (internally it actually does allow it) which would allow you
>>> to use formatted text and store it. The drawback is that such a
>>> text is no longer executable directly in R, so you couldn't
>>> "source" it. I not quite sure what is more useful - I'm almost
>>> inclined to think that banning text format changes makes more
>>> sense, but I'm open to other suggestions...
>>>
>>> Cheers,
>>> Simon
>>>
>>> On Sep 15, 2006, at 8:53 PM, Parlamis Franklin wrote:
>>>
>>>> if i open a blank document in the built-in editor and enter the
>>>> following text:
>>>>
>>>> Help
>>>>
>>>> Help
>>>>
>>>> and then underline the first "Help" (by highlighting it, and using
>>>> either Meta-U or Format>Font>Underline), the underlining will show
>>>> up in my current session. but if i save the document and reopen
>>>> it,
>>>> the underlining will be gone. what is more, if i then open the
>>>> document in another text editor (try TextEdit), highlight the first
>>>> help and try to underline it, everything in the document will be
>>>> underlined, including the second "Help"
>>>>
>>>> i've been using 2.4.0 alpha (about a week old) and the R.app
>>>> deployment build (Version 1.17-pre (3779)) for R 2.4.x from http://
>>>> cran.cnr.berkeley.edu/
>>>>
>>>> franklin parlamis
>>>>
>>>>> version
>>>> _
>>>> platform powerpc-apple-darwin8.7.0
>>>> arch powerpc
>>>> os darwin8.7.0
>>>> system powerpc, darwin8.7.0
>>>> status alpha
>>>> major 2
>>>> minor 4.0
>>>> year 2006
>>>> month 09
>>>> day 06
>>>> svn rev 39158
>>>> language R
>>>> version.string R version 2.4.0 alpha (2006-09-06 r39158)
>>>>
>>>> _______________________________________________
>>>> R-SIG-Mac mailing list
>>>> R-SIG-Mac at stat.math.ethz.ch
>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>
>>>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list