<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rense Nieuwenhuis &#187; text editor</title>
	<atom:link href="http://www.rensenieuwenhuis.nl/tag/text-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rensenieuwenhuis.nl</link>
	<description>&#34;The extra-ordinary lies within the curve of normality&#34;</description>
	<lastBuildDate>Thu, 12 Mar 2026 14:58:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>R-Sessions 27: Text Editors for R: Textmate</title>
		<link>http://www.rensenieuwenhuis.nl/r-sessions-27/</link>
		<comments>http://www.rensenieuwenhuis.nl/r-sessions-27/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 10:14:33 +0000</pubDate>
		<dc:creator><![CDATA[Rense Nieuwenhuis]]></dc:creator>
				<category><![CDATA[R-Project]]></category>
		<category><![CDATA[R-Sessions]]></category>
		<category><![CDATA[Academic Software]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[Textmate]]></category>

		<guid isPermaLink="false">http://www.rensenieuwenhuis.nl/?p=686</guid>
		<description><![CDATA[R-Project works best with a good text editor that is well integrated with R-Project. This edition of the R-Sessions will focus on <a href="http://macromates.com/">TextMate</a>, a paid application marketed as 'The Missing Editor for Mac OS X'. 

Designed explicitly for use by programmers on Mac OS X, TextMate makes a promising first impression. The interface looks very clean, text is rendered perfectly, and syntax colouring is provided for quite a large number of programming languages. Also, the colouring of the syntax looks very nice, by the use of light colours that don't interfere with reading the text.]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/"><img src="http://i1.wp.com/www.rensenieuwenhuis.nl/wp-content/uploads/2008/07/r-sessions.jpg?w=470" " title="R-Sessions" data-recalc-dims="1" /></a></p>
<p>R-Project works best with a good text editor that is well integrated with R-Project. This edition of the R-Sessions will focus on <a href="http://macromates.com/">TextMate</a>, a paid application marketed as &#8216;The Missing Editor for Mac OS X&#8217;. </p>
<p>Designed explicitly for use by programmers on Mac OS X, TextMate makes a promising first impression. The interface looks very clean, text is rendered perfectly, and syntax colouring is provided for quite a large number of programming languages. Also, the colouring of the syntax looks very nice, by the use of light colours that don&#8217;t interfere with reading the text.</p>
<p><img src="http://www.rensenieuwenhuis.nl/wp-content/uploads/2008/10/textmate.tiff" alt="" title="textmate" class="alignnone size-full wp-image-687" /><br />
<span id="more-686"></span><br />
R-Project integration is not standard, but is installed rather easily. It requires a little tinkering in the Terminal, but I don&#8217;t expect many users of R-Project to scare away from that. TextMate uses so-called Bundles to provide integration with and definition of many programming languages. The bundles also provide short templates of often used functions. A list of bundles is made available <a href="http://macromates.com/svn/Bundles/trunk/Bundles/">here</a> (amongst which one for R-Project, and instruction on how to install TextMate bundles is found <a href="http://manual.macromates.com/en/bundles#getting_more_bundles">here</a>.</p>
<p>The R Bundle sends the whole file, or just a selection, to the R prompt swiftly. It also sends a command to set the R Working Directory to the path where the executed syntax is located. I fail to understand why, though, and found it sometimes a little annoying when scrolling back though my output and finding the working directory set between almost every command. </p>
<p>TextMate is full of nice, little details. Row numbering, marking specific rows for future attention, manually setting the number of spaces for a tab, adjusting the way syntax is coloured, and tabbed viewing of multiple files: it&#8217;s all there, and it is all executed properly. Also, loops and other nested syntax (such as function definitions, which is often used when working with R), can be collapsed, so that only the first row remains visible. Using this clears up complex syntax in a breeze. </p>
<p>The most important feature to me, however, was using the Project Drawer. As the image below shows, this sums up several of the files you&#8217;re currently working on. The collection of files can be saved as Projects, so you can continue working on them at later stages. The Project-file only contains references to the actual files, so the text-files will always remain accessible by other applications. More importantly, you can even manage the physical files from within TextMate: when you delete a file from the Project Drawer, you can choose to delete only the reference to the file, or to move the actual file to the Trash, as well. Of course, new files can be created from within TextMate as well. </p>
<p><img src="http://www.rensenieuwenhuis.nl/wp-content/uploads/2008/10/textmate-drawer.tiff" alt="" title="textmate-drawer" class="alignnone size-full wp-image-688" /></p>
<p>Overall, TextMate is a very solid text editor. It integrates with R-Project reasonably well, colours the syntax much better than the internal editor of R-Project, and provides strong functionality in the form of project management. By using extension bundles, it can do much more than syntax editing for R-Project, but when using it for that purpose only, I find the price (â‚¬48.75 at the time of writing) a little too steep. Also, the closed source of the software may not appeal to some users of the open-source R-Project. Therefore, the next R-Sessions will focus on some open-source and / or free alternatives, that appear to be at least as good.</p>
<p>&#8211; &#8211; &#8212; &#8212; &#8212;&#8211; &#8212;&#8212;&#8211;</p>
<ul>
<li><b><a href="http://www.rensenieuwenhuis.nl/R-forum/">Discuss this article and pose additional questions in the R-Sessions Forum</a></b></li>
</ul>
<p>&#8211; &#8211; &#8212; &#8212; &#8212;&#8211; &#8212;&#8212;&#8211;<br />
<a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/">R-Sessions</a> is a collection of manual chapters for R-Project, which are maintained on <a href="www.rensenieuwenhuis.nl">Curving Normality</a>. All posts are linked to the chapters from the R-Project manual on this site. The manual is free to use, for it is paid by the advertisements, but please refer to it in your work inspired by it. Feedback and topic requests are highly appreciated.<br />
&#8212;&#8212;&#8211; &#8212;&#8211; &#8212; &#8212; &#8211; &#8211;<br />
</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rensenieuwenhuis.nl/r-sessions-27/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>R Sessions 26: Text editors for R: Internal editor on OS X</title>
		<link>http://www.rensenieuwenhuis.nl/r-sessions-26-text-editors-for-r-internal-editor-on-os-x/</link>
		<comments>http://www.rensenieuwenhuis.nl/r-sessions-26-text-editors-for-r-internal-editor-on-os-x/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 10:00:38 +0000</pubDate>
		<dc:creator><![CDATA[Rense Nieuwenhuis]]></dc:creator>
				<category><![CDATA[R-Project]]></category>
		<category><![CDATA[R-Sessions]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[text editor]]></category>

		<guid isPermaLink="false">http://www.rensenieuwenhuis.nl/?p=654</guid>
		<description><![CDATA[<a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/"><img src="http://www.rensenieuwenhuis.nl/wp-content/uploads/2008/07/r-sessions.jpg" " title="R-Sessions" width="470" /></a>
Since <a href="www.r-project.org">R-Project</a> is essentially syntax based, one needs a good text editor to write some code before it is executed in R. And, since we are all writing high quality code, we need a high quality text editor. This is the first in a series on text editors for using with R-Project on MacOSX.

The first editor to look at, is the internal one. The Mac OS X version of R-Project comes with quite a strong, although basic, text editor.]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/"><img src="http://i1.wp.com/www.rensenieuwenhuis.nl/wp-content/uploads/2008/07/r-sessions.jpg?w=470" " title="R-Sessions" data-recalc-dims="1" /></a><br />
<!--adsense--></p>
<p>Since <a href="www.r-project.org">R-Project</a> is essentially syntax based, one needs a good text editor to write some code before it is executed in R. And, since we are all writing high quality code, we need a high quality text editor. This is the first in a series on text editors for using with R-Project on MacOSX.<br />
<span id="more-654"></span><br />
The first editor to look at, is the internal one. The Mac OS X version of R-Project comes with quite a strong, although basic, text editor. It is shown in the picture below, where it is being used to edit a fragment of code of my own. We readily see some syntax coloring, which is a great help regarding the readability of the syntax (syntax colouring is only available in the Mac OS X version of R-Project). Also, on the top of the window, a drop-down list is shown, which now shows `dp.HI.cook&#8217;, which happens to be the name of one of the functions that is defined in the syntax file. By clicking one of the items in this drop-down list, the cursor automatically jumps to that section of the file, allowing for fast and easy navigation. As to be expected, the code can easily be send from the editor to the R prompt, where it is executed. </p>
<p><img src="http://i1.wp.com/www.rensenieuwenhuis.nl/wp-content/uploads/2008/10/r-project-text-editor.jpg?resize=500%2C473" alt="" title="r-project-text-editor" class="alignnone size-full wp-image-655" data-recalc-dims="1" /></p>
<p>To my liking, this editor is just a little too light-weight. It does a nice job colouring the syntax and such, but it lacks on other features such as advanced find &#038; replace, or management of multiple files. If you&#8217;re editing more than a single file, you will be doing it in more than a single window, which might be a little inconvenient. Also, when working on large files for a longer period, I found that at times the text wasn&#8217;t rendered any-longer. I then had to save and re-open the file. Also, working on long files can be a tad slow, for it seems that the text-colouring tends to run behind easily. </p>
<p>Nevertheless, having your text editor integrated in R-Project does have one strong advantage: the syntax help provided by the Mac OS X version of R-Project is also shown in the editor. So, if you type the name of a function and the opening bracket &#8216;(&#8216;, you immediately see all the pre-defined parameters to that function. This greatly reduces the necessity of using the help-pages and is provided by only a very few of the external editors.</p>
<p>All in all, the internal editor of R-Project is not bad at all, particularly on Mac OS X. For simple analyses and writing or editing of some small helper functions, it suffices. However, for more serious projects it will soon prove to be too ill equipped. Fortunately, we have some excellent external text editors for this, some of which will be discussed in the upcoming <a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/">R-Sessions</a>. </p>
<p>&#8211; &#8211; &#8212; &#8212; &#8212;&#8211; &#8212;&#8212;&#8211;</p>
<ul>
<li><b><a href="http://www.rensenieuwenhuis.nl/R-forum/">Discuss this article and pose additional questions in the R-Sessions Forum</a></b></li>
</ul>
<p>&#8211; &#8211; &#8212; &#8212; &#8212;&#8211; &#8212;&#8212;&#8211;<br />
<a href="http://www.rensenieuwenhuis.nl/archive/category/r-project/r-sessions/">R-Sessions</a> is a collection of manual chapters for R-Project, which are maintained on <a href="www.rensenieuwenhuis.nl">Curving Normality</a>. All posts are linked to the chapters from the R-Project manual on this site. The manual is free to use, for it is paid by the advertisements, but please refer to it in your work inspired by it. Feedback and topic requests are highly appreciated.<br />
&#8212;&#8212;&#8211; &#8212;&#8211; &#8212; &#8212; &#8211; &#8211;<br />
</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rensenieuwenhuis.nl/r-sessions-26-text-editors-for-r-internal-editor-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
