<?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>R-statistics blog &#187; R bloggers</title>
	<atom:link href="http://www.r-statistics.com/tag/r-bloggers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r-statistics.com</link>
	<description>Writing about statistics with R, and open source stuff (software, data, community)</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:45:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The present and future of the R blogosphere (~7 minute video from useR2011)</title>
		<link>http://www.r-statistics.com/2011/10/the-present-and-future-of-the-r-blogosphere-a-7-minute-lightning-talk-from-user2011/</link>
		<comments>http://www.r-statistics.com/2011/10/the-present-and-future-of-the-r-blogosphere-a-7-minute-lightning-talk-from-user2011/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:08:59 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[R and the web]]></category>
		<category><![CDATA[R community]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Blogs]]></category>
		<category><![CDATA[R bloggers]]></category>
		<category><![CDATA[R blogs]]></category>
		<category><![CDATA[the future of R]]></category>
		<category><![CDATA[the R blogosphere]]></category>
		<category><![CDATA[useR]]></category>
		<category><![CDATA[useR 2011]]></category>
		<category><![CDATA[WordPress.com]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=818</guid>
		<description><![CDATA[This is (roughly) the lightning talk I gave in useR2011. If you are a reader of R-bloggers.com then this talk is not likely to tell you anything new. However, if you have a friend, college or student who is a new useRs of R, this talk will offer him a decent introduction to what the R [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2011/10/the-present-and-future-of-the-r-blogosphere-a-7-minute-lightning-talk-from-user2011/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2011/10/the-present-and-future-of-the-r-blogosphere-a-7-minute-lightning-talk-from-user2011/"></g:plusone></div></div><p>This is (roughly) the lightning talk I gave in <a href="http://www.warwick.ac.uk/statsdept/user-2011/">useR2011</a>.  If you are a reader of <a href="http://www.r-bloggers.com/">R-bloggers.com</a> then this talk is not likely to tell you anything new.  However, if you have a friend, college or student who is a new useRs of R, this talk will offer him a decent introduction to what the R blogosphere is all about.</p>
<p>The talk is a call for people of the R community to participate more in reading, writing and interacting with blogs.</p>
<p>I was encouraged to record this talk per the request of Chel Hee Lee, so it may be used in the recent <a href="http://www.openstatistics.net/?page_id=1035">useR conference in Korea (2011)</a></p>
<p>The talk (briefly) goes through:</p>
<ol>
<li>The widespread influence of the R blogosphere</li>
<li>What R bloggers write about</li>
<li>How to encourage a blogger you enjoy reading to keep writing</li>
<li>How to start your own R blog (just go to <a href="http://wordpress.com/">wordpress.com</a>)</li>
<li>Basic tips about writing a blog</li>
<li>One advice about marketing your R blog (<a href="http://www.r-bloggers.com/add-your-blog/">add it to R-bloggers.com</a>)</li>
<li>And two thoughts about the future of R blogging (more bloggers and readers, and more interactive online visualization)</li>
</ol>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/I4ZhxqbgWG4" frameborder="0" allowfullscreen></iframe></p>
<p>My apologies for any of the glitches in my English.  For more talks about R, you can visit <a href="http://www.r-bloggers.com/RUG/">the R user groups blog</a>.  I hope more speakers from useR 2011 will consider uploading their talks online.</p>
<p><a href="http://www.r-statistics.com/wp-content/uploads/2011/10/Slide1-korea.gif"><img src="http://www.r-statistics.com/wp-content/uploads/2011/10/Slide1-korea-300x225.gif" alt="" title="Slide1 - korea" width="300" height="225" class="alignnone size-medium wp-image-820" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2011/10/the-present-and-future-of-the-r-blogosphere-a-7-minute-lightning-talk-from-user2011/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>R-bloggers in 2010: Top 14 R posts, site statistics and invitation for sponsors</title>
		<link>http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/</link>
		<comments>http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 16:58:01 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[R and the web]]></category>
		<category><![CDATA[R community]]></category>
		<category><![CDATA[R links]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[new year]]></category>
		<category><![CDATA[r blog]]></category>
		<category><![CDATA[R bloggers]]></category>
		<category><![CDATA[R blogosphere]]></category>
		<category><![CDATA[rbloggers]]></category>
		<category><![CDATA[webanalytics]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=613</guid>
		<description><![CDATA[A year ago (on December 9th 2009), I wrote about founding R-bloggers.com, an (unofficial) online R journal written by bloggers who agreed to contribute their R articles to the site. In this post I wish to celebrate R-bloggers&#8217; first birthday by sharing with you: Links to the top 14 posts of 2010 Reflections about the origin of R-bloggers Statistics [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/"></g:plusone></div></div><p>A year ago (on December 9th 2009), I <a href="http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/">wrote</a> about founding <a href="http://www.r-bloggers.com/"><strong>R-bloggers.com</strong></a>, an (unofficial) online R journal written by bloggers who agreed to contribute their R articles to the site.</p>
<p>In this post I wish to celebrate R-bloggers&#8217; first birthday by sharing with you:</p>
<ol>
<li>Links to the top 14 posts of 2010</li>
<li>Reflections about the origin of R-bloggers</li>
<li>Statistics on &#8220;how well&#8221; R-bloggers did this year</li>
<li>Links to other related projects</li>
<li>An invitation for sponsors/supporters to help keep the site alive</li>
</ol>
<p><span id="more-613"></span></p>
<h3>1. Top 14 R posts of 2010</h3>
<p>R-bloggers&#8217; success is largely owed to the content submitted by the R bloggers themselves.  The R community currently has <strong><span style="text-decoration: underline;">143 active R bloggers</span></strong> (links to the blogs are clearly visible in the right navigation bar on the <a href="http://www.r-bloggers.com/">R-bloggers homepage</a>).  In a little over one year, these bloggers wrote almost 3,000 posts about R.  That is amazing!</p>
<p>Here is a <strong><span style="text-decoration: underline;">list of the top visited posts</span></strong> on the site in 2010:</p>
<ul>
<li><a title="100 Prisoners, 100 lines of code" href="http://www.r-bloggers.com/100-prisoners-100-lines-of-code/">100 Prisoners, 100 lines of code</a></li>
<li><a title="Google AI Challenge: Languages Used by the Best Programmers" href="http://www.r-bloggers.com/google-ai-challenge-languages-used-by-the-best-programmers/">Google AI Challenge: Languages Used by the Best Programmers</a></li>
<li><a title="Getting Started with Sweave: R, LaTeX, Eclipse, StatET, &amp; TeXlipse" href="http://www.r-bloggers.com/getting-started-with-sweave-r-latex-eclipse-statet-texlipse/">Getting Started with Sweave: R, LaTeX, Eclipse, StatET, &amp; TeXlipse</a></li>
<li><a title="Why Use R?" href="http://www.r-bloggers.com/why-use-r/">Why Use R?</a></li>
<li><a title="“simply start over and build something better”" href="http://www.r-bloggers.com/%e2%80%9csimply-start-over-and-build-something-better%e2%80%9d/">“simply start over and build something better”</a></li>
<li><a title="R Tutorial Series: R Beginner's Guide and R Bloggers Updates" href="http://www.r-bloggers.com/r-tutorial-series-r-beginners-guide-and-r-bloggers-updates/">R Tutorial Series: R Beginner&#8217;s Guide and R Bloggers Updates</a></li>
<li><a title="Select operations on R data frames" href="http://www.r-bloggers.com/select-operations-on-r-data-frames/">Select operations on R data frames</a></li>
<li><a title="Hacker News User Base Changed?" href="http://www.r-bloggers.com/hacker-news-user-base-changed/">Hacker News User Base Changed?</a></li>
<li><a title="Top 10 Algorithms in Data Mining" href="http://www.r-bloggers.com/top-10-algorithms-in-data-mining/">Top 10 Algorithms in Data Mining</a></li>
<li><a title="Fantasy football (oops, soccer)" href="http://www.r-bloggers.com/fantasy-football-oops-soccer/">Fantasy football (oops, soccer)</a></li>
<li><a title="Delete rows from R data frame" href="http://www.r-bloggers.com/delete-rows-from-r-data-frame/">Delete rows from R data frame</a></li>
<li><a title="Visualizing Facebook Friends: Eye Candy in R" href="http://www.r-bloggers.com/visualizing-facebook-friends-eye-candy-in-r/">Visualizing Facebook Friends: Eye Candy in R</a></li>
<li><a title="Advanced graphics in R" href="http://www.r-bloggers.com/advanced-graphics-in-r/">Advanced graphics in R</a></li>
<li><a title="How to build a world-beating predictive model using R" href="http://www.r-bloggers.com/how-to-build-a-world-beating-predictive-model-using-r/">How to build a world-beating predictive model using R</a></li>
</ul>
<h3>2. Motivation for creating R-bloggers</h3>
<p>Originally, the idea for R-bloggers came when, over a year ago, I spent several hours trying to find bloggers who wrote about R.  I was successful in finding roughly 14 R bloggers (and too many blog posts of people talking about pirates).  This experience led me to wonder how many other people like myself were also struggling to find these bloggers.  The second thought I had was the answer to the following question: &#8220;What can I offer an R blogger so that he will tell me that he exists?&#8221;  The answer I came up with is &#8220;audience and traffic&#8221; &#8211; and that&#8217;s what R-bloggers tries to achieve: the site offers the blogger audience and traffic in exchange for the blogger giving permission to republish their &#8220;R content&#8221; on the site.</p>
<p>Part of my motivation was that, as one of these bloggers who wrote about R (here, on <a title="R statistics" href="http://www.r-statistics.com">R-statistics.com</a>), I too hoped to gain more audience and traffic for my content.   R-bloggers helped me achieve this goal.</p>
<h3>3. Statistics &#8211; how well did R-bloggers do this year</h3>
<p>There are several matrices one can consider when evaluating the success of a website.  I&#8217;ll present a few of them here and will begin by talking about the visitors to the site.</p>
<p><a rel="attachment wp-att-615" href="http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/r-bloggers-map-of-visitors-for-2010/"><img class="aligncenter size-medium wp-image-615" title="R bloggers - map of visitors for 2010" src="http://www.r-statistics.com/wp-content/uploads/2011/01/R-bloggers-map-of-visitors-for-2010-300x188.png" alt="" width="300" height="188" /></a></p>
<p>This year, <strong><span style="text-decoration: underline;">the site was visited by</span></strong> about 286,000 &#8220;Absolute Unique Visitors.&#8221;  There was a total of nearly 600,000 visits and over 1 million page-views.  People have surfed the site from over 200 countries, with the greatest number of visitors coming from the United States (40%) and then followed by the United Kingdom (6.8%), Germany (6.6%), Canada (4.9%), France (3.3%), and other countries.</p>
<p>The site has received between 15,000 to 25,000 visits a week in the past few months, and I suspect this number will remain stable in the next few months (unless something very interesting will happen).</p>
<p><a rel="attachment wp-att-614" href="http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/r-bloggers-google-analytics-stats-for-2010/"><img class="size-medium wp-image-614 alignleft" title="r-bloggers google analytics stats for 2010" src="http://www.r-statistics.com/wp-content/uploads/2011/01/r-bloggers-google-analytics-stats-for-2010-300x115.png" alt="" width="300" height="115" /></a></p>
<p>I believe this number will stay constant thanks to visitors&#8217; loyalty: 60% of the site&#8217;s visits came from returning users.</p>
<p>Another indicator of reader loyalty is the number of subscribers to R-bloggers as counted by feedburner, which includes both RSS readers and e-mail subscribers.  The range of subscribers is estimated to be between 2600 to 2900.</p>
<p>Thus it seems that R-bloggers succeeds in offering a real service to the R users community.</p>
<h3>4. Projects related to R-bloggers</h3>
<p>During the last year I have created several R-bloggers clone sites in the hopes of serving other audiences.  I started a multilingual version of R-bloggers at <a href="http://www.r-bloggers.com/lang/">www.r-bloggers.com/lang/</a> (currently hosting 7 bloggers, written in Dutch, Indonesian, Italian, Korean, Russian, Spanish).  I hope more will join the site in the future.</p>
<p>I&#8217;ve also started 3 other promising such sites: <a href="http://SAS-x.com">SAS-x.com</a>, <a href="http://DanceBloggers.com">DanceBloggers.com</a> and <a href="http://forex-bloggers.com">forex-bloggers.com</a>.  How will they do?  Only time will tell.</p>
<h3>5. Invitation to sponsor/advertise on R-bloggers</h3>
<p>Due to the increase in the site&#8217;s popularity, 4 months ago I had to <a href="http://www.r-bloggers.com/r-bloggers-maintenance/">upgrade R-bloggers&#8217; hosting account to a VPS</a> hosting, which had directed me to decide on attempting to add ads to R-bloggers so to keep the site self sufficient financially.</p>
<p>So in the hopes of keeping the site sustainable in the long run, I am now (somewhat forced) to make this call: if you are interested in sponsoring/placing ads/supporting R-bloggers, then you&#8217;re welcome to <a href="http://www.r-statistics.com/contact-me/">contact me</a>.</p>
<p>Happy new year!<br />
Yours,<br />
<a href="http://www.r-statistics.com/about/">Tal Galili</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2011/01/r-bloggers-in-2010-top-14-r-posts-site-statistics-and-invitation-for-sponsors/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WP-CodeBox:  A better R syntax highlighter plugin for WordPress</title>
		<link>http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/</link>
		<comments>http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 06:53:57 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[R and the web]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[highlight package]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[R blogger]]></category>
		<category><![CDATA[R bloggers]]></category>
		<category><![CDATA[R blogging]]></category>
		<category><![CDATA[syntax highlight]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wp-syntax]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=570</guid>
		<description><![CDATA[Today I was informed of (what I believe is) a better the best WordPress plugin for R syntax highlighting called WP-CodeBox.  This plugin doesn&#8217;t require any hacks to make it work (as opposed to the WP-Syntax plugin, which I wrote about in the past).  WP-CodeBox can be downloaded and installed on a WordPress by searching [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/"></g:plusone></div></div><p>Today I was informed of (what I believe is) <del>a better</del> the best WordPress plugin for R syntax highlighting called <a href="http://wordpress.org/extend/plugins/wp-codebox/">WP-CodeBox</a>.  This plugin doesn&#8217;t require any hacks to make it work (as opposed to the <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a> plugin, which I wrote about in the past).  <a href="http://wordpress.org/extend/plugins/wp-codebox/">WP-CodeBox</a> can be downloaded and installed on a WordPress by searching for it in the &#8220;Add New&#8221; section in the plugins menu.</p>
<p>WP-CodeBox provides some nice features (some AJAX based) to the display of the code in the post:</p>
<ol>
<li>The code box in the post can now be folded (top right of the code box) so the code can be hidden so to not clutter the post (if the code is too long)</li>
<li>The code box is added with another button  (top left of the code box) which allows the reader to see the code in a new window &#8211; so to easily enable a copy paste of the code.</li>
<li>The options of the plugin allows automatic row numbering of the code, control over &#8220;tab&#8221; length and some other features.</li>
</ol>
<h3>Usage</h3>
<p>After installing (and activating) the plugin, in order to add R code to your post you will need to:<br />
1) Only work in HTML mode (not the Visual mode). Or else, the code you will paste will be messed up.<br />
2) Put your code between the &lt;pre&gt; tag, like this:</p>
<p>(Note: make sure that you rewrite the &#8221; &#8211; so it will work.)</p>
<blockquote><div id="_mcePaste">&lt;pre lang=&#8221;rsplus&#8221; line=&#8221;1&#8243;&gt;</div>
<div id="_mcePaste">&#8230;Your R code here&#8230;</div>
<div id="_mcePaste">&lt;/pre&gt;</div>
</blockquote>
<p>p.s: Lastly, my <strong>thanks </strong>goes to <a href="http://ygc.cwsurf.de/">guangchuang yu</a> who&#8217;s <a href="http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/comment-page-1/#comment-3328">comment on my original post</a>, and he&#8217;s <a href="http://ygc.cwsurf.de/2010/10/11/highlight-r-syntax-in-wordpress/">post on wp-codebox and R</a>, has introduced me to this better plugin.</p>
<p>p.p.s: in case you blog on WordPress.com, there is also a solution for <a href="http://www.r-statistics.com/2010/09/r-syntax-highlighting-for-bloggers-on-wordpress-com/">R syntax highlighting for WordPress.com <a href="http://www.r-statistics.com/2010/09/r-syntax-highlighting-for-bloggers-on-wordpress-com/">bloggers</a></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Highlight the R syntax on your (WordPress) blog using the wp-syntax plugin</title>
		<link>http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/</link>
		<comments>http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 09:48:38 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[emac]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[highlight package]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[R blogger]]></category>
		<category><![CDATA[R bloggers]]></category>
		<category><![CDATA[R blogging]]></category>
		<category><![CDATA[syntax highlight]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wp-syntax]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=119</guid>
		<description><![CDATA[Update (11.10.10): I found a better solution for R syntax highlighting then the one presented in this post. The plugin is called WP-CodeBox, and I wrote about it on the post &#8211; WP-CodeBox: A better R syntax highlighter plugin for WordPress Download link for WP-Syntax plugin (with GeSHi version 1.0.8.6) In case you have a [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/"></g:plusone></div></div><table border="1">
<tr>
<td>
<strong>Update (11.10.10):</strong> I found a better solution for R syntax highlighting then the one presented in this post.  The plugin is called WP-CodeBox, and I wrote about it on the post &#8211; <a href="http://www.r-statistics.com/2010/10/wp-codebox-a-better-r-syntax-highlighter-plugin-for-wordpress/">WP-CodeBox: A better R syntax highlighter plugin for WordPress</a>
</td>
</tr>
</table>
<table border="1">
<tr>
<td>
<strong><a href="http://www.r-statistics.com/wp-content/uploads/2010/02/wp-syntax-0.9.8-GeShi-1.0.8.6.zip">Download link for WP-Syntax plugin (with GeSHi version 1.0.8.6)</a></strong>
</td>
</tr>
</table>
<p>In case you have a <a href="http://wordpress.org/">self hosted WordPress blog</a>, and you wish to show your R code in it, how would you do it?</p>
<p>The simplest solution would be to just paste the code as plain text, which will look like this:</p>
<blockquote><p>x &lt;- rnorm(100, mean = 2, sd = 3)<br />
plot(x, xlab = &#8220;index&#8221;, main = &#8220;Example code&#8221;)</p></blockquote>
<p>But if you would like to help our readers orient themselves inside your code by giving different colors to different commands in the code (a.k.a: syntax highlighting). So it would like something like this:</p>

<div class="wp_codebox"><table><tr id="p1192"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p119code2"><pre class="rsplus" style="font-family:monospace;">x <span style="color: #080;">&lt;-</span> <span style="color: #0000FF; font-weight: bold;">rnorm</span><span style="color: #080;">&#40;</span><span style="color: #ff0000;">100</span>, <span style="color: #0000FF; font-weight: bold;">mean</span> <span style="color: #080;">=</span> <span style="color: #ff0000;">2</span>, <span style="color: #0000FF; font-weight: bold;">sd</span> <span style="color: #080;">=</span> <span style="color: #ff0000;">3</span><span style="color: #080;">&#41;</span> <span style="color: #228B22;"># Creating a vector</span>
<span style="color: #0000FF; font-weight: bold;">plot</span><span style="color: #080;">&#40;</span>x, xlab <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;index&quot;</span>, main <span style="color: #080;">=</span> <span style="color: #ff0000;">&quot;Example code&quot;</span><span style="color: #080;">&#41;</span> <span style="color: #228B22;"># Plotting it</span></pre></td></tr></table></div>

<p>How then would you do it?</p>
<h3>Plugin Installation</h3>
<p>The easiest way to do this inside a <a href="http://wordpress.org/">self hosted WordPress </a>blog is by<a href="http://codex.wordpress.org/Managing_Plugins#Installing_Plugins"> installing a plugin</a> called <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a>:</p>
<blockquote><p>WP-Syntax provides clean syntax highlighting using GeSHi &#8212; supporting a wide range of popular languages (including R). It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.</p></blockquote>
<p>But there is<strong> a problem</strong>. The current WP-Syntax version is using an old version of GeSHi, and only the newer version (currently GeSHi version 1.0.8.6) includes support for R syntax. In order to <strong>solve this</strong> I patched the plugin and I encourage you to <strong><a href="http://www.r-statistics.com/wp-content/uploads/2010/02/wp-syntax-0.9.8-GeShi-1.0.8.6.zip">download (the fixed version of) WP-Syntax from here</a></strong>, which will allow you to highlight your R code.</p>
<h3>Usage</h3>
<p>After installing (and activating) the plugin, in order to add R code to your post you will need to:<br />
1) Only work in HTML mode (not the Visual mode). Or else, the code you will paste will be messed up.<br />
2) Put your code between the &lt;pre&gt; tag, like this:</p>
<p>(Note: make sure that you rewrite the &#8221; &#8211; so it will work.)</p>
<blockquote><div id="_mcePaste">&lt;pre lang=&#8221;rsplus&#8221; line=&#8221;1&#8243;&gt;</div>
<div id="_mcePaste">&#8230;Your R code here&#8230;</div>
<div id="_mcePaste">&lt;/pre&gt;</div>
</blockquote>
<h3>Final note: R Syntax highlight in other ways</h3>
<p>If you wish to have R syntax higlight inside an HTML file, I encourage you can have a look at the <a href="http://romainfrancois.blog.free.fr/index.php?post/2009/11/22/new-R-package-:-highlight">highlight package</a>, by Romain Francois.</p>
<p>If you want to higlight your R syntax inside <a href="http://wordpress.com">wordpress.com</a>, here is <a href="http://blogisticreflections.wordpress.com/2009/09/20/welcome-to-blogistic-reflections/">a blog post</a> by Erik Iverson showing how to do that using Emacs.</p>
<p><strong>p.s: If you have a blog in which you write about R, please let me know about it in the comments (Or just <a href="http://www.r-bloggers.com/add-your-blog/">join R-bloggers.com</a>) &#8211; I&#8217;d love to follow you <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
<p><strong>Update: </strong> Stephen Turner wrote about <a href="http://gettinggeneticsdone.blogspot.com/2010/09/embed-rstats-code-with-syntax.html">a syntax highlighting solution for R and blogger using github gist</a>.  And also mentioned there another solution for self hosted wordpress blogs, via  <a href="http://www.cerebralmastication.com/">J.D. Long</a>: a <a href="http://www.entropytheblog.com/blog/2008/12/wordpress-github-gist-shortcode-plugin/">Github Gist plugin for WordPress</a>.  Go publish code <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2010/02/r-syntax-highlight-on-your-blog-a-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Announcing R-bloggers.com: a new R news site (for bloggers by bloggers)</title>
		<link>http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/</link>
		<comments>http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 21:00:57 +0000</pubDate>
		<dc:creator>Tal Galili</dc:creator>
				<category><![CDATA[R and the web]]></category>
		<category><![CDATA[R community]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[bloggers]]></category>
		<category><![CDATA[Blogs]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[news site]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[R bloggers]]></category>
		<category><![CDATA[R blogosphere]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.r-statistics.com/?p=51</guid>
		<description><![CDATA[I already wrote about R-bloggers on the R mailing list, so it only seems fitting to write about it more here. I will explain what R-bloggers is and then move to explain what I hope it will accomplish. R-Bloggers.com is a central hub of content collected from bloggers who write about R (in English) and [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-right"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/&amp;layout=box_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/"></g:plusone></div></div><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; line-height: 20px; margin: 0px;">I already wrote about R-bloggers on the R mailing list, so it only seems fitting to write about it more here. I will explain what R-bloggers is and then move to explain what I hope it will accomplish.</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; line-height: 20px; margin: 0px;">
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; line-height: 20px; margin: 0px;"><a href="http://www.r-bloggers.com/">R-Bloggers.com</a> is a central hub of content collected from bloggers who write about R (in English) and if you are an R blogger you can join it by filling in <a href="http://www.r-bloggers.com/add-your-blog/">this form</a>.</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; line-height: 20px; margin: 0px;">I built the site with the aspiration to  help R bloggers and users to connect and follow the “R blogosphere”. When I am writing these words, R-bloggers already has 17 blogs in it, and I hope for many (many) more.</p>
<p><strong>How does R-Bloggers operate?</strong> This site aggregates feeds (only with permission!) from participating R blogs. The beginnings of each participating blog’s posts will automatically be displayed on the main page with links to the original posts; inside every post there is a link to the  original blog and links to other related articles.  While all participating blogs have links in the “Contributors” section of our sidebar</p>
<p><strong>What does R-Bloggers offer it&#8217;s visitors?</strong></p>
<ul>
<li><strong><span style="text-decoration: underline;">Discover (for all)</span></strong>: Find new R blogs you didn’t know about. And Search in them for content you want.</li>
<li><strong><span style="text-decoration: underline;">Follow (for people who don&#8217;t use RSS)</span></strong>: Enter your e-mail and subscribe to receive a daily digest with teasers of new posts from participating blogs.  You will more easily get a sense of hot topics in the R blogosphere.</li>
<li><strong><span style="text-decoration: underline;">Connect (for facebook users)</span></strong>: Click on “Fan this site” to become a “fan” of R Bloggers.  You can then “friend” other people and share thoughts on our wall. Or just by leaving comments on the blog.</li>
<li><strong><span style="text-decoration: underline;">Participate (for bloggers)</span></strong>: Add your R blog to get increased visibility (for readers and search engines) with permanent links on our Contributors sidebar.  Your blog will also gain visibility via our e-mail digest and through your presence on the main page with posts.</li>
</ul>
<p><strong> Who started R-Bloggers (and way)? <span style="font-weight: normal; line-height: 20px; ">R Bloggers was started by Tal Galili (well, me).  After searching for numerous R blogs I decided that there must be more R blogs our there then he knows about, and maybe the best way for finding them is to make them find him.</span></strong></p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; line-height: 20px; margin: 0px;">After writing about it in the R mailing list, I got some good feedbacks but also questions about why use only R blogs and not all the R feeds that exist. Who is the website actually for (when there are services like Google reader for us to read our feeds with), and what am I hoping it will do. So here is what I answered:</p>
<blockquote><p>For me there are two audiences:<br />
<strong> One is</strong> that of the web 2.0 power users. That is, people who know what RSS is and use it, maybe evern write their own blogs. These people have only one problem (as I see it) that R-bloggers tries to solve, and that is to know who else lives in their ecosystem. Who else they should follow.<br />
For that, google reader recommendation system is great, but not enough. A much better system is if there was a one place where all R bloggers would go, write down their website, and all of us would know they exist. That is what R-bloggers offers for the power users. I think this is also why over 20 of them subscribed to the site RSS feed.<br />
BTW, The origin of this idea came to me when I was trying to find all the dance bloggers for my wife (who is a dance researcher and blogger herself). After a while we started http://www.dancebloggers.com/ while knowing of only 10 bloggers. They list now has over 80 bloggers, most of which we would have not known about without this hub.<br />
The same thing I am trying to do for the R community, that is way I hope more R bloggers would write about the service &#8211; so their network of readers which includes other R bloggers would add themselves and we will all know about them.<br />
If that was my only purpose, a simple directory would have been enough. But I also have a second one and that is to help the second audience.</p>
<p><strong>The second audience</strong> I am thinking of are people of our community who are not so much early adopters (and actually quite late adapters) of the new facilities that the new web (a.k.a: web 2.0) provides.<br />
To them the all RSS thing is too much to look at, and they are used to e-mails. And because of that they are (until now) disconected from many of the R bloggers out there, simply because it is in-efficient for them to go through all these blogs each day (or even week). So for them, to see all the content in one place (and even get an e-mail about it) would be (I hope) a service. I believe that&#8217;s why 5 of them (so far) has subscribed via e-mail.<br />
I also hope teachers will direct their students to this as a resource for getting a sense of what people who are using R are doing.<br />
Another thing that hints me about the R community is seeing how the &#8220;facebook fan box&#8221; is still empty. Which tells me that (sadly) very few R users are actively using facebook as a means for connecting with the outer networks of people out there.</p>
<p>All I wrote also explains why R-bloggers will only take feeds of bloggers and only (as much as can be said) their posts that are centered around R  (hence the website name <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).<br />
It both follows what Gabor talked about &#8211; having a site who&#8217;s content is only about R. But also what I wish, which is to have &#8220;content&#8221; in the sense of articles to read (mostly). And not so much things like news feeds of wikipedia or new packages published.</p></blockquote>
<p>I hope this post will both notify people about this new resource, encourage more R bloggers to join, and will help for future people to better understand what this R-Bloggers thing is all about <img src='http://www.r-statistics.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.r-statistics.com/2009/12/announcing-r-bloggers-com-a-new-r-news-site-for-bloggers-by-bloggers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

