<?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>cameron.bracken.bz</title>
	<atom:link href="http://cameron.bracken.bz/feed" rel="self" type="application/rss+xml" />
	<link>http://cameron.bracken.bz</link>
	<description>R, LaTeX, Graphics and Handy Homemade Tools</description>
	<lastBuildDate>Thu, 02 Aug 2012 20:22:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Who wants to maintain pgfSweave?</title>
		<link>http://cameron.bracken.bz/who-wants-to-maintain-pgfsweave</link>
		<comments>http://cameron.bracken.bz/who-wants-to-maintain-pgfsweave#comments</comments>
		<pubDate>Thu, 02 Aug 2012 20:22:02 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=299</guid>
		<description><![CDATA[So the time has come for me to face the fact that I have no time to maintain pgfSweave. It was recently archived because I didn&#8217;t make necessary changes to comply with some CRAN policies. SO, I need someone to step up to the plate to make some tweakes, put it back up on CRAN [...]]]></description>
			<content:encoded><![CDATA[<p>So the time has come for me to face the fact that I have no time to maintain <a href="https://github.com/cameronbracken/pgfSweave">pgfSweave</a>. It was recently archived because I didn&#8217;t make necessary changes to comply with some CRAN policies. SO, I need someone to step up to the plate to make some tweakes, put it back up on CRAN and maintain it in the future. Is it you?</p>

<p>To do the job you need at a basic understanding (or a desire to learn) the following:</p>

<ul>
<li>Git/Github</li>
<li>Sweave</li>
<li>LaTeX</li>
<li>Make</li>
<li>R (duh :p)</li>
</ul>

<p>Compensation includes:</p>

<ul>
<li>Undying glory</li>
<li>The respect of your peers</li>
<li>Self satisfaction</li>
<li>A high-five from me if we ever meet in person!</li>
</ul>

<p>If you are interested in the job please contact me at cameron[dot]bracken[at]gmail[dot]com</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/who-wants-to-maintain-pgfsweave/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Syntax highlighting of roxygen documentation in TextMate</title>
		<link>http://cameron.bracken.bz/syntax-highlighting-of-roxygen-documentation-in-textmate</link>
		<comments>http://cameron.bracken.bz/syntax-highlighting-of-roxygen-documentation-in-textmate#comments</comments>
		<pubDate>Tue, 02 Aug 2011 19:57:54 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=291</guid>
		<description><![CDATA[With roxygen now on github, the release of roxygen2 and Hadley&#8217;s might now behind the project I expect roxygen to gain even more momentum. R development in TextMate is great with the R bundle. Unfortunately the R bundle does not support highlighting of roxygen documentation by default. That was always a sticking point for me [...]]]></description>
			<content:encoded><![CDATA[<p>With <a href="https://github.com/klutometis/roxygen">roxygen now on github</a>, the release of <a href="http://cran.r-project.org/web/packages/roxygen2/index.html">roxygen2</a> and <a href="https://github.com/hadley">Hadley&#8217;s might</a> now behind the project I expect roxygen to gain even more momentum.</p>

<p>R development in <a href="http://macromates.com/">TextMate</a> is great with the R bundle.  Unfortunately the R bundle does not support highlighting of roxygen documentation by default.  That was always a sticking point for me switching to roxygen because TextMate has really nice highlighting for Rd files.</p>

<p>So I hacked on the syntax file to get at least some preliminary highlighting of stuff after roxygen comments (<code>#'</code>). The file is in a <a href="https://gist.github.com/1119021">gist over at github</a>. It doesn&#8217;t yet work quite as well as I would like but it is better than nothing.  In particular, highlighting of R code in examples does not work.  Contributions/additions are welcome.</p>

<p>You must have must have the R bundle installed. The easiest way to install is to open the bundle editor (&#8220;Bundles&#8221; > &#8220;Bundle Editor&#8221; > &#8220;Show Bundle Editor&#8221;) and copy this file over the R syntax file from the R bundle. Then &#8220;Reload Bundles&#8221; or restart TextMate.</p>

<p>You may need to install the R bundle first if you have not already:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>TextMate<span style="color: #000000; font-weight: bold;">/</span>Bundles<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>TextMate<span style="color: #000000; font-weight: bold;">/</span>Bundles<br />
<span style="color: #c20cb9; font-weight: bold;">svn co</span> http:<span style="color: #000000; font-weight: bold;">//</span>svn.textmate.org<span style="color: #000000; font-weight: bold;">/</span>trunk<span style="color: #000000; font-weight: bold;">/</span>Bundles<span style="color: #000000; font-weight: bold;">/</span>R.tmbundle</div>
</div></p>

<p>Then either reload the bundles or restart TextMate to get the bundle activated.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/syntax-highlighting-of-roxygen-documentation-in-textmate/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Synctex with Sweave/pgfSweave in TeXShop/TeXWorks</title>
		<link>http://cameron.bracken.bz/synctex-with-sweavepgfsweave-in-texshoptexworks</link>
		<comments>http://cameron.bracken.bz/synctex-with-sweavepgfsweave-in-texshoptexworks#comments</comments>
		<pubDate>Tue, 28 Jun 2011 23:00:42 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=264</guid>
		<description><![CDATA[Ever been editing an .Rnw (Sweave) file and tried to sync a pdf with the source in TeXShop (or TeXWorks) and had it open the .tex file? This is because the synctex information (in the .synctex.gz file) is messed up. Both TeXShop and TeXWorks support synctex, that means that if everything is groovy, we should [...]]]></description>
			<content:encoded><![CDATA[<p>Ever been editing an <code>.Rnw</code> (Sweave) file and tried to sync a pdf with the source in TeXShop (or TeXWorks) and had it open the <code>.tex</code> file?  This is because the synctex information (in the <code>.synctex.gz</code> file) is messed up. Both TeXShop and TeXWorks support synctex, that means that if everything is groovy, we should be able to jump between the corresponding places in the source and pdf windows.</p>

<p>Unfortunately all that goes out the window when using Sweave. Fortunately we can make it work!  By that I mean it is possible to sync beween a pdf and the <code>.Rnw</code> source file. We need three things:</p>

<ol>
<li><p><strong>Add the <code>concordance</code> option</strong> when compiling with Sweave. That means add the line <code>\SweaveOpts{concordance=T}</code> to the top of your document after loading the Sweave style file.</p></li>
<li><p><strong>Enable synctex</strong> with the <code>--synctex=1</code> flag when compiling the tex file.</p></li>
<li><p>From the <a href="https://r-forge.r-project.org/projects/sweavesearch/"><code>patchDVI</code></a> (sweavesearch project on R-Forge), you need to <strong>use the <code>patchSynctex</code> function</strong>.   This package is not available on CRAN afaik so you should install it from source from R-Forge:</p>

<p><code>install.packages("patchDVI", repos="http://R-Forge.R-project.org")</code></p></li>
</ol>

<p>Here is an example file for either Sweave or pgfSweave:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>tikz<span style="color: #E02020; ">}</span> <br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>Sweave<span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\SweaveOpts</span><span style="color: #E02020; ">{</span>concordance=TRUE<span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctitle"><span style="color: #800000;">title</span></a><span style="color: #E02020; ">{</span>Concordance Example<span style="color: #E02020; ">}</span> <br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cauthor"><span style="color: #800000;">author</span></a><span style="color: #E02020; ">{</span>Cameron Bracken<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cmaketitle"><span style="color: #800000;">maketitle</span></a> <br />
<br />
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas<br />
eget dolor enim. Donec tincidunt augue porta justo lacinia<br />
convallis. Quisque convallis mi sit amet augue volutpat gravida.<br />
Class aptent taciti sociosqu ad litora torquent per conubia nostra,<br />
per inceptos himenaeos. Proin consequat fringilla adipiscing.<br />
Integer interdum risus id lorem luctus et convallis mauris rutrum.<br />
Suspendisse at mauris velit. Cras sed nisl ipsum, et sodales nulla.<br />
Integer in enim id ante aliquam tincidunt eget sed urna. Fusce et<br />
eros sit amet lacus hendrerit rutrum. Proin a tellus sed magna<br />
feugiat mollis. Fusce est augue, sodales quis scelerisque quis,<br />
fringilla at leo.<br />
<br />
<br />
&lt;&lt;data&gt;&gt;= <br />
x &lt;- rnorm(10)<br />
@<br />
<br />
&lt;&lt;&gt;&gt;=<br />
print(x)<br />
@<br />
<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">figure</span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">!ht</span><span style="color: #E02020; ">]</span> <br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ccentering"><span style="color: #800000;">centering</span></a><br />
&lt;&lt;plot,echo=T,fig=T,width=3.1,height=3.1&gt;&gt;=<br />
plot(x,t=&#8217;l')<br />
@ <br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ccaption"><span style="color: #800000;">caption</span></a><span style="color: #E02020; ">{</span>Example figure.<span style="color: #E02020; ">}</span> <br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">figure</span><span style="color: #E02020; ">}</span><br />
<br />
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sed<br />
leo at mauris lacinia consequat quis sed neque. Nulla auctor<br />
malesuada leo, at sodales nulla lacinia et. Donec vel enim vitae<br />
massa aliquam posuere. In nec convallis sapien. Aenean tincidunt,<br />
ipsum non congue ornare, dui eros lobortis libero, sed egestas nibh<br />
arcu vel metus. Donec condimentum, ipsum ut vehicula ullamcorper,<br />
urna lacus aliquam est, at condimentum nunc odio at felis. Aenean<br />
dapibus aliquam dolor, at elementum dolor imperdiet vitae. Proin<br />
felis odio, ultricies ut gravida scelerisque, aliquet ut magna.<br />
Nullam at sapien vel mauris iaculis viverra vel ut mi. Class aptent<br />
taciti sociosqu ad litora torquent per conubia nostra, per inceptos<br />
himenaeos. Nunc vulputate ipsum placerat enim hendrerit at aliquam<br />
mi porttitor. Fusce eget commodo metus. Vivamus sed nisl eu enim<br />
adipiscing feugiat at et dolor. Vestibulum ante ipsum primis in<br />
faucibus orci luctus et ultrices posuere cubilia Curae;<br />
<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></div>
</div></p>

<p>Here is a script to compile:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
R CMD Sweave <span style="color: #ff0000;">&quot;$1&quot;</span><br />
latexmk <span style="color: #660033;">-pdf</span> <span style="color: #660033;">-silent</span> <span style="color: #660033;">-pdflatex</span>=<span style="color: #ff0000;">&#8216;pdflatex &#8211;shell-escape &#8211;synctex=1&#8242;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${1%.*}</span>&quot;</span><br />
Rscript <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;library(&#8216;patchDVI&#8217;);patchSynctex(&#8216;<span style="color: #007800;">${1%.*}</span>.synctex.gz&#8217;)&quot;</span></div>
</div></p>

<p>say you name it <code>runSweave.sh</code>, then call it</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">$ runSweave.sh myfile.Rnw</div>
</div></p>

<p>A much easier way would be to <a href="http://cameron.bracken.bz/sweave-for-texshop">set up an engine</a> in TeXShop or a custom &#8220;processing tool&#8221; in TeXWorks.  There is a function in the <code>patchDVI</code> package called <code>SweavePDF</code> that should do the same thing but I have not tried it.</p>

<p>After all the compiling and patching of the synctex file is done, try right clicking and selecting &#8216;Sync&#8217; in TeXShop or &#8216;Jump to PDF&#8217; in TeXWorks, and everything should work!  NOTE:  I dont use TeXWorks so I haven&#8217;t gotten it to work but <a href="http://www.math.montana.edu/~jimrc/classes/Rseminar/TexWorks.pdf">others have reported</a> it does.</p>

<p>As for <a href="http://cran.r-project.org/web/packages/pgfSweave/index.html">pgfSweave</a>, the current version does not correctly output concordance information.  But a <a href="https://github.com/cameronbracken/pgfSweave/pull/32">patch</a> enables proper concordance support (thanks aecay!). The next version of pgfSweave should have this working. To compile with pgfSweave, it is pretty much the same:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">#!/bin/bash<br />
<br />
R CMD pgfsweave &#8211;graphics-only &quot;$1&quot;<br />
make -j 2 -f &quot;${1%.*}&quot;.makefile<br />
latexmk -pdf -silent -pdflatex=&#8217;pdflatex &#8211;shell-escape &#8211;synctex=1 &#8211;file-line-error&#8217; &quot;${1%.*}&quot;<br />
Rscript -e &quot;library(&#8216;patchDVI&#8217;);patchSynctex(&#8216;${1%.*}.synctex.gz&#8217;)&quot;</div>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/synctex-with-sweavepgfsweave-in-texshoptexworks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using tikzDevice with Sweave in R 2.13</title>
		<link>http://cameron.bracken.bz/using-tikzdevice-with-sweave-in-r-2-13</link>
		<comments>http://cameron.bracken.bz/using-tikzdevice-with-sweave-in-r-2-13#comments</comments>
		<pubDate>Tue, 12 Apr 2011 22:11:48 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=255</guid>
		<description><![CDATA[R 2.13 introduces an option to specify a custom graphics device in an Sweave code chunk. This is really cool and allows you to use tikzDevice output like pgfSweave does. In an pinch, say when you dont have access to any non-core packages, you can use tikzDevice output with the regular Sweave driver (RweaveLatex) more [...]]]></description>
			<content:encoded><![CDATA[<p>R 2.13 introduces an option to specify a custom graphics device in an Sweave code chunk. This is really cool and allows you to use tikzDevice output like <a href="http://cran.r-project.org/web/packages/pgfSweave/index.html">pgfSweave</a> does. In an pinch, say when you dont have access to any non-core packages, you can use <a href="http://cran.r-project.org/web/packages/tikzDevice/index.html">tikzDevice</a> output with the regular Sweave driver (RweaveLatex) more simply than before.  Here is a minimal example showing how.</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">noae,nogin</span><span style="color: #E02020; ">]{</span>Sweave<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>tikz<span style="color: #E02020; ">}</span><br />
<br />
<br />
<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\SweaveOpts</span><span style="color: #E02020; ">{</span>prefix.string=fig<span style="color: #E02020; ">}</span><br />
<br />
Example using <span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctexttt"><span style="color: #800000;">texttt</span></a><span style="color: #E02020; ">{</span>tikzDevice<span style="color: #E02020; ">}</span> with the default <span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctextbf"><span style="color: #800000;">textbf</span></a><span style="color: #E02020; ">{</span>Sweave<span style="color: #E02020; ">}</span> <br />
driver (<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Ctexttt"><span style="color: #800000;">texttt</span></a><span style="color: #E02020; ">{</span>RweaveLatex<span style="color: #E02020; ">}</span>). &nbsp;First define a custom device:<br />
<br />
&lt;&lt;results=hide&gt;&gt;=<br />
tikz.Swd &lt;- function(name, width, height, &#8230;)<span style="color: #E02020; ">{</span><br />
&nbsp; &nbsp; require(tikzDevice)<br />
&nbsp; &nbsp; tikzDevice::tikz(file = paste(name, &quot;tikz&quot;, sep = &quot;.&quot;),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width = width, height = height)<br />
<br />
<span style="color: #E02020; ">}</span><br />
@<br />
<br />
Then use the device for plotting, but you have to include the figure manually. <br />
<br />
&lt;&lt;myplot, fig=T, grdevice=tikz.Swd, include=F, width=4,height=4&gt;&gt;=<br />
plot(1)<br />
@<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cinput"><span style="color: #800000;">input</span></a><span style="color: #E02020; ">{</span>fig-myplot.tikz<span style="color: #E02020; ">}</span><br />
<br />
<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></div>
</div></p>

<p><em>WARNING: This could be very slow if your graphic is complex</em></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/using-tikzdevice-with-sweave-in-r-2-13/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>There is a new version of pgfSweave, and its awesome!</title>
		<link>http://cameron.bracken.bz/there-is-a-new-version-of-pgfsweave-and-its-awesome</link>
		<comments>http://cameron.bracken.bz/there-is-a-new-version-of-pgfsweave-and-its-awesome#comments</comments>
		<pubDate>Wed, 06 Apr 2011 18:18:33 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=247</guid>
		<description><![CDATA[I just uploaded version 1.2.1 of pgfSweave, and I think it is just great! The most notable new feature is the use of the TikZ externalization library list and make feature instead of the pgf \begingraphicnamed functionality. This has some important consequences: PGF 2.10 is required! This has been out for some months now but [...]]]></description>
			<content:encoded><![CDATA[<p>I just uploaded version 1.2.1 of pgfSweave, and I think it is just great!  The most notable new feature is the use of the TikZ externalization library <code>list and make</code> feature instead of the pgf <code>\begingraphicnamed</code> functionality.  This has some important consequences:</p>

<ol>
<li>PGF 2.10 is required!  This has been out for some months now but many LaTeX distros are notoriously slow at updating, so you may need to update manually. </li>
<li>Backward compatibility may break with some documents who still have the <code>\pgfrealjobname</code> hardcoded or who use the <code>tex.driver</code> option. </li>
<li>A new workflow is required to compile documents (it includes make), this is outlined in the vignette. </li>
<li>You can use all the nifty features in the TikZ externalization library, see the TikZ/PGF manual for more details. </li>
<li>Most importantly it is faster!</li>
</ol>

<p>There are a boat load of other changes and new features, I think you like it, check them out:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Version 1.2.1 &#8211; 2011-04-03<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
* [NEW] If PGF 2.10 is not available, issue a startup message but still <br />
&nbsp; &nbsp; &nbsp; &nbsp; load the package (So the package can go on CRAN). PGF 2.10 <br />
&nbsp; &nbsp; &nbsp; &nbsp; is still required to compile .tex file produced with pgfSweave<br />
* [NEW] Remove null device code which could cause problems with grid <br />
&nbsp; &nbsp; &nbsp; &nbsp; graphics<br />
* [NEW] Example using xelatex for external graphics<br />
* [NEW] Chunk options `relwidth&#8217; and `relheight&#8217; for scaling figures <br />
&nbsp; &nbsp; &nbsp; &nbsp; relative to the `width&#8217; and `height&#8217; options (thanks to Fabrice <br />
&nbsp; &nbsp; &nbsp; &nbsp; Rossi for the patch)<br />
* [CHANGED] Fix the internal caching of external graphics, it now works as <br />
&nbsp; &nbsp; &nbsp; &nbsp; expected and can save significant time<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Version 1.2.0 &#8211; 2011-02-21<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
* [NEW] Use the tikz externalization library instead of the pgf backend. <br />
&nbsp; &nbsp; &nbsp; &nbsp; This allows for more flexibility and faster compilations but <br />
&nbsp; &nbsp; &nbsp; &nbsp; BEWARE, this requires at least pgf 2.10 and may break backward <br />
&nbsp; &nbsp; &nbsp; &nbsp; computability in some cases <br />
* [NEW] GNU Make is now a system requirement for externalizing graphics, <br />
&nbsp; &nbsp; &nbsp; &nbsp; NOT for compiling the package<br />
* [NEW] Option to specify number of processors when externalizing graphics<br />
* [NEW] Externalized graphics now have another layer of crude caching<br />
* [NEW] Highlighted output is now output in a separate environment to fix <br />
&nbsp; &nbsp; &nbsp; &nbsp; the centering issues<br />
* [NEW] Example document using plain latex and the tikz external library <br />
&nbsp; &nbsp; &nbsp; &nbsp; to generate eps graphics, <br />
&nbsp; &nbsp; &nbsp; &nbsp; `inst/example/pgfSweave-latex-example.Rnw`<br />
* [CHANGED] The command line interface is now much simpler internally <br />
&nbsp; &nbsp; &nbsp; &nbsp; and uses optparse instead of getopt for more flexibility (the <br />
&nbsp; &nbsp; &nbsp; &nbsp; optparse package is now a dependency)<br />
* [CHANGED] The `tex.driver&#8217; option has been removed, the same effect can <br />
&nbsp; &nbsp; &nbsp; &nbsp; be achieved using the tikz externalization library, see the new <br />
&nbsp; &nbsp; &nbsp; &nbsp; example for how<br />
* [DEPRECIATED] The `pgf&#8217; option is depreciated, please use the `tikz&#8217; <br />
&nbsp; &nbsp; &nbsp; &nbsp; option</div>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/there-is-a-new-version-of-pgfsweave-and-its-awesome/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>pgfSweave 1.1.3 and Beyond</title>
		<link>http://cameron.bracken.bz/pgfsweave-1-1-3-and-beyond</link>
		<comments>http://cameron.bracken.bz/pgfsweave-1-1-3-and-beyond#comments</comments>
		<pubDate>Wed, 19 Jan 2011 16:49:06 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[pgfSweave]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=241</guid>
		<description><![CDATA[pgfSweave 1.1.3 is now on CRAN. This release adds a few new features and fixes some bugs The pesky Rplots.pdf file is not generated anymore Brand new vignette by Hans Ekbrand on the use of pgfSweave with large data sets based on this site. New example on using caching by Yihui Xie Reusing code chunks [...]]]></description>
			<content:encoded><![CDATA[<p>pgfSweave 1.1.3 is now on CRAN.  This release adds a few new features and fixes some bugs</p>

<ul>
<li>The pesky Rplots.pdf file is not generated anymore</li>
<li>Brand new vignette by Hans Ekbrand on the use of pgfSweave with large data sets based on <a href="http://code.cjb.net/pgfSweave.html">this</a> site. </li>
<li>New example on using caching by <a href="http://yihui.name/">Yihui Xie</a></li>
<li>Reusing code chunks now works as expected</li>
<li>Inline comments are now preserved when tidy=T (thanks to changes in the <a href="http://cran.r-project.org/web/packages/formatR/">formatR</a>)</li>
</ul>

<p>Please see the <a href="http://cran.r-project.org/web/packages/pgfSweave/NEWS">NEWS</a> file for the full list sicce version 1.1.0.</p>

<p>I am also now working on the next version of pgfSweave to be version 1.2.  This version will make some considerable changes to improve efficiency, namely</p>

<ul>
<li>Scrap the &#8220;old&#8221; externalization (\beginpgfgraphicnamed) in favor of the tikz external library (\tikzexternalize) which will allow for parallel compilation of external graphics</li>
<li>Improve recognition of changes to plotting chunks for efficiency</li>
<li>Fix centering of <code>\include</code>&#8216;d images and highlighted output </li>
<li>Improve upon the package load time</li>
<li>Spif up the command line interface with some new options</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/pgfsweave-1-1-3-and-beyond/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>pgfSweave 1.1.0 now on CRAN!</title>
		<link>http://cameron.bracken.bz/pgfsweave-1-1-0-now-on-cran</link>
		<comments>http://cameron.bracken.bz/pgfsweave-1-1-0-now-on-cran#comments</comments>
		<pubDate>Thu, 02 Dec 2010 22:55:51 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[pgfSweave]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=237</guid>
		<description><![CDATA[The next release of pgfSweave is now on CRAN! It has been a while since I posted about pgfSweave and there have been some significant changes in the past couple of months. The main new features are: Automatic code highlighting via the highlight package. This can be turned off with the highlight option. &#8220;Tidying&#8221; of [...]]]></description>
			<content:encoded><![CDATA[<p>The next release of <a href="http://cran.r-project.org/web/packages/pgfSweave/index.html">pgfSweave</a> is now on CRAN! It has been a while since I posted about pgfSweave and there have been some significant changes in the past couple of months.</p>

<p>The main new features are:</p>

<ul>
<li>Automatic code highlighting via the <a href="http://cran.r-project.org/web/packages/highlight/">highlight</a> package.  This can be turned off with the <code>highlight</code> option. </li>
<li>&#8220;Tidying&#8221; of source code output via the <code>tidy</code> option. </li>
<li>Access to <a href="http://cran.r-project.org/web/packages/pgfSweave/">tikzDevice</a> sanitization through a code chunk option <code>sanitize</code></li>
<li>Automatic addition of the <code>\pgfrealjobname</code> command if it does not exist similarly to the addition of the <code>\usepackage{Sweave}</code> line.</li>
<li>Setting tex.driver=latex will now (in addition to working) generate an eps file</li>
</ul>

<p>And of course bug fixes:</p>

<ul>
<li>Fixes for bunches of issues related to the changes in Sweave in R 2.12.  I think these issues are now resolved (fingers crossed)</li>
<li><code>keep.source</code> actually works now. </li>
</ul>

<p>See the <a href="http://cran.r-project.org/web/packages/pgfSweave/NEWS">NEWS</a> file for the complete list of changes and the <a href="http://cran.r-project.org/web/packages/pgfSweave/vignettes/pgfSweave.pdf">vignette</a> for information on now to use the new options.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/pgfsweave-1-1-0-now-on-cran/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>No Sidebar, Fullscreen, Super Minimal Gmail (for ninjas)</title>
		<link>http://cameron.bracken.bz/no-sidebar-fullscreen-super-minimal-gmail-for-ninjas</link>
		<comments>http://cameron.bracken.bz/no-sidebar-fullscreen-super-minimal-gmail-for-ninjas#comments</comments>
		<pubDate>Wed, 17 Nov 2010 17:23:58 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Gmail]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=230</guid>
		<description><![CDATA[Real Gmail Ninjas dont want all that sidebar clicky junk on their screens. Because of keyboard shortcuts, you can do nearly everything in Gmail with the keyboard and the sidebar becomes irrelevant. Also I use Adium, so I don&#8217;t need the build in chat. I created a css file that kills the sidebar and some [...]]]></description>
			<content:encoded><![CDATA[<p>Real Gmail Ninjas dont want all that sidebar clicky junk on their screens.  Because of keyboard shortcuts, you can do nearly everything in Gmail with the keyboard and the sidebar becomes irrelevant.  Also I use Adium, so I don&#8217;t need the build in chat.</p>

<p>I created a css file that kills the sidebar and some other things:</p>

<ul>
<li>Inbox spans full screen</li>
<li>Extra attachment icons </li>
<li>No ads</li>
<li>Messages span whole screen</li>
<li>No footer</li>
</ul>

<p>Please hack away. This script has pieces cobbled from various user scripts and extensions, I am really sorry but I don&#8217;t remember all my sources, please call me out on that.</p>

<p><a href="wp-content/images/gmail-ninja.png"><img src="/wp-content/images/gmail-ninja.png" width="30%"></a></p>

<p>Get it <a href="wp-content/files/gmail.css">here</a>.</p>

<p>UPDATE:  Gmail changed some things, so I updated the css file fo fix some weirdness. It also now works with viewing contacts!</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/no-sidebar-fullscreen-super-minimal-gmail-for-ninjas/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Save time when compiling with microtype</title>
		<link>http://cameron.bracken.bz/save-time-when-compiling-with-microtype</link>
		<comments>http://cameron.bracken.bz/save-time-when-compiling-with-microtype#comments</comments>
		<pubDate>Wed, 25 Aug 2010 18:08:14 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=226</guid>
		<description><![CDATA[Recently there was a discussion on the MacOSX-TeX about compilation time with the microtype package. Under some circumstances (particularly when using latexsym), very large increases in compilation time were seen with microtype enabled. The full solution was given by Robert Schlicht, the maintainer of microtype. In the end it comes to adding these few lines [...]]]></description>
			<content:encoded><![CDATA[<p>Recently there was a <a href="http://macosx-tex.576846.n2.nabble.com/The-microtype-mystery-td5426020.html">discussion</a> on the MacOSX-TeX about compilation time with the microtype package.  Under some circumstances (particularly when using latexsym), very large increases in compilation time were seen with microtype enabled.  The <a href="http://macosx-tex.576846.n2.nabble.com/The-microtype-mystery-td5426020i20.html#a5451360">full solution</a> was given by Robert Schlicht, the maintainer of microtype.  In the end it comes to adding these few lines after loading microtype:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">\usepackage{microtype}<br />
\makeatletter <br />
\def\MT@register@subst@font{<br />
&nbsp; &nbsp;\MT@exp@one@n\MT@in@clist\font@name\MT@font@list <br />
&nbsp; &nbsp;\ifMT@inlist@\else\xdef\MT@font@list{\MT@font@list\font@name,}\fi} <br />
\makeatother</div>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/save-time-when-compiling-with-microtype/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New stack exchange site for stats</title>
		<link>http://cameron.bracken.bz/new-stack-exchange-site-for-stats</link>
		<comments>http://cameron.bracken.bz/new-stack-exchange-site-for-stats#comments</comments>
		<pubDate>Mon, 26 Jul 2010 20:08:12 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=222</guid>
		<description><![CDATA[http://stats.stackexchange.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://stats.stackexchange.com/">http://stats.stackexchange.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/new-stack-exchange-site-for-stats/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated way to check for PGF version</title>
		<link>http://cameron.bracken.bz/automated-way-to-check-for-pgf-version</link>
		<comments>http://cameron.bracken.bz/automated-way-to-check-for-pgf-version#comments</comments>
		<pubDate>Wed, 21 Apr 2010 20:01:41 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[pgf]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=212</guid>
		<description><![CDATA[This is one way to check for the version of PGF that is installed in an automated way. First create a tex file with the following contents: \documentclass{article} \usepackage{tikz} \batchmode \makeatletter \typeout{PGFVersion=\pgfversion} \@@end Say you named it test-pgf-version.tex. Then: pdflatex test-pgf-version.tex cat test-pgf-verson.log &#124; grep PGFVersion &#124; sed &#8216;s/PGFVersion=//&#8217; should display the version number. I [...]]]></description>
			<content:encoded><![CDATA[<p>This is one way to check for the version of PGF that is installed in an automated way.  First create a tex file with the following contents:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>tikz<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\batchmode</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cmakeatletter"><span style="color: #800000;">makeatletter</span></a><br />
<span style="color: #800000; font-weight: normal;">\typeout</span><span style="color: #E02020; ">{</span>PGFVersion=<span style="color: #800000; font-weight: normal;">\pgfversion</span></span><span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span>@@end</div>
</div></p>

<p>Say you named it <code>test-pgf-version.tex</code>.  Then:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;">pdflatex test-pgf-version.tex<br />
<span style="color: #c20cb9; font-weight: bold;">cat</span> test-pgf-verson.log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> PGFVersion <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&#8216;s/PGFVersion=//&#8217;</span></div>
</div></p>

<p>should display the version number.  I happen to need to do this from <code>R</code> so using similar logic:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="scheme" style="font-family:monospace;">logFile <span style="color: #66cc66;">&lt;-</span> &#8216;test<span style="color: #66cc66;">-</span>pgf<span style="color: #66cc66;">-</span>version.<span style="color: #b1b100;">log</span>&#8216; &nbsp; &nbsp;<br />
logContents <span style="color: #66cc66;">&lt;-</span> readLines<span style="color: #66cc66;">&#40;</span> logFile <span style="color: #66cc66;">&#41;</span><br />
match <span style="color: #66cc66;">&lt;-</span> logContents<span style="color: #66cc66;">&#91;</span> grep<span style="color: #66cc66;">&#40;</span>&#8216;PGFVersion<span style="color: #66cc66;">=</span>&#8216;, logContents<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#93;</span><br />
version <span style="color: #66cc66;">&lt;-</span> gsub<span style="color: #66cc66;">&#40;</span>&#8216;<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">=</span>A<span style="color: #66cc66;">-</span>Za<span style="color: #66cc66;">-</span>z<span style="color: #66cc66;">-</span><span style="color: #66cc66;">&#93;</span>&#8216;,&#8221;,match<span style="color: #66cc66;">&#41;</span><br />
print<span style="color: #66cc66;">&#40;</span>version<span style="color: #66cc66;">&#41;</span></div>
</div></p>

<p>which accomplishes the same task as the second line above.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/automated-way-to-check-for-pgf-version/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>pgfSweave version 1.0.5 released</title>
		<link>http://cameron.bracken.bz/pgfsweave-version-1-0-5-released</link>
		<comments>http://cameron.bracken.bz/pgfsweave-version-1-0-5-released#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:49:02 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[pgf]]></category>
		<category><![CDATA[pgfSweave]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=205</guid>
		<description><![CDATA[Version 1.0.5 is now on CRAN. This version brings some bug fixes as well as two new features: Unlabeled code chunks are now allowed. The correct version of PGF is now checked for on startup. If the version is &#60; 2.00, the package will fail to load. http://cran.r-project.org/web/packages/pgfSweave/index.html]]></description>
			<content:encoded><![CDATA[<p>Version 1.0.5 is now on CRAN. This version brings some bug fixes as well as two new features:</p>

<ul>
<li>Unlabeled code chunks are now allowed.</li>
<li>The correct version of PGF is now checked for on startup. If the version is &lt; 2.00, the package will fail to load. </li>
</ul>

<p><a href="http://cran.r-project.org/web/packages/pgfSweave/index.html">http://cran.r-project.org/web/packages/pgfSweave/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/pgfsweave-version-1-0-5-released/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Local texmf tree on Mac OS X</title>
		<link>http://cameron.bracken.bz/local-texmf-tree-on-mac-os-x</link>
		<comments>http://cameron.bracken.bz/local-texmf-tree-on-mac-os-x#comments</comments>
		<pubDate>Wed, 16 Dec 2009 09:00:07 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[texmf]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/?p=192</guid>
		<description><![CDATA[This is mostly a reference for a me but also a good reminder for those using TeXLive on Mac OS X (a.k.a. MacTeX). From the document &#8220;What Is Installed.pdf&#8221; in /Applications/TeX: Incidentally, if you want to add files to TEX Live for one particular user, install them in a similar tree ~/Library/texmf where ~/Library is [...]]]></description>
			<content:encoded><![CDATA[<p>This is mostly a reference for a me but also a good reminder for those using TeXLive on Mac OS X (a.k.a. MacTeX). From the document &#8220;What Is Installed.pdf&#8221; in <code>/Applications/TeX</code>:</p>

<blockquote>
  <p>Incidentally, if you want to add files to TEX Live for one particular user, install them in a similar tree <code>~/Library/texmf</code> where <code>~/Library</code> is the Library folder in that user’s home directory. The folder texmf and other folders for the tree will have to be created. For instance, TEX will find any file in <code>~/Library/texmf/tex</code> or a subfolder of this location, LATEX will find any file in <code>~/Library/texmf/tex/latex</code> or a subfolder of this location, and BibTEX will find any .bib file in <code>~/Library/texmf/bibtex/bib</code> or a subfolder of this location, and any .bst file in <code>~/Library/texmf/bibtex/bst</code> or a subfolder of this location. It is not necessary to use texhash when adding files to this local tree.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/local-texmf-tree-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pgfSweave now on CRAN</title>
		<link>http://cameron.bracken.bz/pgfsweave-now-on-cran</link>
		<comments>http://cameron.bracken.bz/pgfsweave-now-on-cran#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:11:09 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Sweave]]></category>
		<category><![CDATA[Charlie Sharpsteen]]></category>
		<category><![CDATA[CRAN]]></category>
		<category><![CDATA[pgf]]></category>
		<category><![CDATA[tikz]]></category>

		<guid isPermaLink="false">http://cameron.bracken.bz/pgfsweave-now-on-cran</guid>
		<description><![CDATA[At long last pgfSweave has finally made its way to CRAN. http://cran.r-project.org/web/packages/pgfSweave/index.html The pgfSweave R package is about speed and style of graphics. For speed, the package provides capabilities for “caching” graphics generated with Sweave on top of the caching funcitonality of cacheSweave. For style the pgfSweave package facilitates the integration of R graphics with [...]]]></description>
			<content:encoded><![CDATA[<p>At long last pgfSweave has finally made its way to CRAN.</p>

<p><a href="http://cran.r-project.org/web/packages/pgfSweave/index.html">http://cran.r-project.org/web/packages/pgfSweave/index.html</a></p>

<p>The pgfSweave R package is about speed and style of graphics. For speed,
the package provides capabilities for “caching” graphics generated
with Sweave on top of the caching funcitonality of cacheSweave. For
style the pgfSweave package facilitates the integration of R graphics
with LaTeX reports through the tikzDevice package and eps2pgf utility.
With these tools, figure labels are converted to LaTeX strings so they
match the style of the document and the full range of LaTeX math
symbols/equations are available.</p>

<p>The backbone of pgfSweave is a a new driver for Sweave
(pgfSweaveDriver). The driver provides new chunk options tikz, pgf and
external on top of the cache option provided by cacheSweave.</p>

<p>This package started as a fork (hack) of cacheSweave to suit our own
narrow purposes and has since become a valuable tool for much of our
own work.  We hope you will find it useful as well.</p>

<p>-Cameron Bracken and Charlie Sharpsteen</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/pgfsweave-now-on-cran/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>swfDevice: Help Wanted (Windows Build) and Outlook</title>
		<link>http://cameron.bracken.bz/swfdevice-help-wanted-windows-build-and-outlook</link>
		<comments>http://cameron.bracken.bz/swfdevice-help-wanted-windows-build-and-outlook#comments</comments>
		<pubDate>Thu, 03 Dec 2009 23:22:31 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[CRAN]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[swfDevice]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=166</guid>
		<description><![CDATA[swfDevice is an R package I am developing that produces swf (flash) files natively from R. If anyone can step up and help get a working windows build up and running that would be great! I have little expertise with windows and I am just about stuck as what to do next. The task involved [...]]]></description>
			<content:encoded><![CDATA[<p>swfDevice is an R package I am developing that produces swf (flash) files natively from R.</p>

<p>If anyone can step up and help get a working windows build up and running that would be great! I have little expertise with windows and I am just about stuck as what to do next. The task involved linking to some precompiled dlls and such since ming depends on libpng, zlib, libungig and freetype. If you would like to help, send me an email (cameron.bracken [at] gmail.com).</p>

<p>Todo before initial CRAN release:</p>

<ul>
<li>Working windows build that does not crash when any operation is performed</li>
<li>option to wrap swf output in HTML</li>
</ul>

<p>Todo in the future (possibly before initial release but probably not):</p>

<h3>Device features</h3>

<ul>
<li>xCharOffset yCharOffset </li>
<li>yLineBias</li>
<li>ipr: pixels per inch </li>
<li>cra: default character size in pixels</li>
<li>canClip: will be much harder than tikzDevice </li>
<li>canChangeGamma</li>
<li>canHAdj: not supported</li>
<li>startps: ditto </li>
<li>hasTextUTF8: should be possible with ming</li>
<li>wantSymbolUTF8: ditto </li>
</ul>

<h3>Implement remaining graphics parameters</h3>

<ul>
<li>gamma </li>
<li>lend</li>
<li>ljoin</li>
<li>lmitre</li>
<li>lineheight</li>
</ul>

<h3>Graphics primitives</h3>

<ul>
<li>metricInfo (is currently returning the same metrics for all characters, this is bad but does not severely affect the text placement)</li>
<li>textUTF8</li>
<li>strWidthUTF8</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/swfdevice-help-wanted-windows-build-and-outlook/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using Git with R-Forge OR Adding an local Git branch to track an Subversion Repo</title>
		<link>http://cameron.bracken.bz/git-with-r-forge</link>
		<comments>http://cameron.bracken.bz/git-with-r-forge#comments</comments>
		<pubDate>Thu, 03 Dec 2009 23:02:56 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Charlie Sharpsteen]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[R-Forge]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=163</guid>
		<description><![CDATA[These instructions were originally from instructions from my friend Charlie. I really like to use Github but R-Forge has alot of nice features for package development, so why not get the best of both worlds. Say you have a git repo (with an R package or something else) but want to create a local brach [...]]]></description>
			<content:encoded><![CDATA[<p><em>These instructions were originally from instructions from my friend <a href="http://sharpsteen.net">Charlie</a>.</em></p>

<p>I really like to use Github but R-Forge has alot of nice features for package development, so why not get the best of both worlds.</p>

<p>Say you have a git repo (with an R package or something else) but want to create a local brach which tracks an svn repo (from R-Forge) such that you can merge changes from your git repo in and then commit them to svn. First use the following command to grab the current svn:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> my-r-package<br />
<span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #c20cb9; font-weight: bold;">svn</span> clone <span style="color: #c20cb9; font-weight: bold;">svn</span>+ssh:<span style="color: #000000; font-weight: bold;">//</span>developername<span style="color: #000000; font-weight: bold;">@</span>svn.r-forge.r-project.org<span style="color: #000000; font-weight: bold;">/</span>svnroot<span style="color: #000000; font-weight: bold;">/</span>my-r-package .</div>
</div></p>

<p>This will create a new git repository that is a mirror of whatever svn repo you pointed at. This may take a while if you have a big existing svn repo.</p>

<p>If you want to add a svn bound branch to an existing git repo:</p>

<p>Edit <code>.git/config</code> and add the following:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="git" style="font-family:monospace;">[svn-remote &quot;r-forge&quot;]<br />
&nbsp; url = path/or/url/to/svn/repository<br />
&nbsp; fetch = :refs/remotes/r-forge-svn</div>
</div></p>

<p>Once you&#8217;ve done this, you have created an entry for a new git remote server- fetch the status and history of it&#8217;s branches using the following:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">git svn fetch r-forge</div>
</div></p>

<p>If this command is successful, <code>git branch -a</code> should show:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">r-forge-svn</div>
</div></p>

<p>In the list of available branches. This branch is a <em>remote</em> branch- to make a local copy, do the following:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">git checkout r-forge-svn<br />
git checkout -b r-forge-svn-local</div>
</div></p>

<p>Now you have a local branch which is bound to the svn server- once again straight up adding/removing/moving files in this branch should work fine. It&#8217;s merging that gets you into trouble.</p>

<h3>How to merge between a git branch and a git-svn branch</h3>

<p>The point is that you don&#8217;t want git infecting your subversion repository with any of its awesomeness. Exposure to the kind of concentrated badass possessed by git causes poor SVN&#8217;s head to pop. So, the merge must be done as follows:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">git checkout r-forge-svn-local<br />
git merge &#8211;squash branch-to-merge-in</div>
</div></p>

<p>The <code>--squash</code> option tells git to leave out any info about what happened during the merge and act like it just mashed a bunch of files into your svn branch using copy commands.</p>

<p>Once you&#8217;ve added/copied/moved/squashmerged new files into your local svn branch- do the following to push the changes to the svn repo:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">git commit -a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (Commit changes to your git repo as normal.)<br />
git svn dcommit &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (This will form each git commit into a svn commit and send it to the svn repo)</div>
</div></p>

<p>To pull changes from the svn repo run the following:</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="txt" style="font-family:monospace;">git svn rebase</div>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/git-with-r-forge/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>swfDevice is nearing completion</title>
		<link>http://cameron.bracken.bz/swfdevice-is-nearing-completion</link>
		<comments>http://cameron.bracken.bz/swfdevice-is-nearing-completion#comments</comments>
		<pubDate>Tue, 17 Nov 2009 22:41:47 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[R-Forge]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[swfDevice]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=161</guid>
		<description><![CDATA[My new R package, swfDevice, is getting close to its first release. This package enables native R graphics output as swf (flash) files. It also as the ability to create animations with player controls. The main project page is here and the results of the test suite are here. Here are some samples: http://swfdevice.r-forge.r-project.org/swfDevice_test29.swf http://swfdevice.r-forge.r-project.org/swfDevice_test28.swf [...]]]></description>
			<content:encoded><![CDATA[<p>My new R package, swfDevice, is getting close to its first release. This package enables native R graphics output as swf (flash) files. It also as the ability to create animations with player controls.  The main project page is <a href="http://r-forge.r-project.org/projects/swfdevice/">here</a> and the results of the test suite are <a href="http://swfdevice.r-forge.r-project.org/">here</a>.</p>

<p>Here are some samples:</p>

<p><a href="http://swfdevice.r-forge.r-project.org/swfDevice_test29.swf">http://swfdevice.r-forge.r-project.org/swfDevice_test29.swf</a></p>

<p><a href="http://swfdevice.r-forge.r-project.org/swfDevice_test28.swf">http://swfdevice.r-forge.r-project.org/swfDevice_test28.swf</a></p>

<p>There are still a few things left to be done such as clipping and a working windows build.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/swfdevice-is-nearing-completion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Critical programs (for me) now up and running on Snow Leopard</title>
		<link>http://cameron.bracken.bz/critical-programs-for-me-now-up-and-running-on-snow-leopard</link>
		<comments>http://cameron.bracken.bz/critical-programs-for-me-now-up-and-running-on-snow-leopard#comments</comments>
		<pubDate>Sun, 13 Sep 2009 22:38:05 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=158</guid>
		<description><![CDATA[I updated to Snow Leopard the first day it came out and much to my ire, many of the programs and plugins that I use regularly were not compatible. Most of the issues had to do with 32/64 bit compatibility with system components. Fortunately the last became available recently (SafariStand). So the three plugins that [...]]]></description>
			<content:encoded><![CDATA[<p>I updated to Snow Leopard the first day it came out and much to my ire, many of the programs and plugins that I use regularly were not compatible.  Most of the issues had to do with 32/64 bit compatibility with system components.  Fortunately the last became available recently (SafariStand).</p>

<p>So the three plugins that I rely on in Safari are finally up and running on Snow Leopard. Those being:</p>

<ul>
<li><a href="http://www.machangout.com/">Glims</a>

<ul>
<li>Adds Numerous sweet features to Safari such as improved search suggestions, many tab options, like &#8220;always open in new tab&#8221;, favicons on tabs and keyword searches!</li>
</ul></li>
<li><a href="http://hetima.com/safari/stand-e.html">SafariStand</a>

<ul>
<li>The other essential plugin, add toolbar button for viewing individual site scripts and downloading flash movies (among other things).</li>
</ul></li>
<li><a href="http://glimmerblocker.org/">GlimmerBlocker</a>

<ul>
<li>THE ad blocker.  I might also mention that I also use <a href="http://fanboy.co.nz/adblock/opera/fanboy-adblocklist-elements.css">Fanboy&#8217;s element hider</a> for good measure. </li>
</ul></li>
</ul>

<p>Other programs I rely on that now are working great on SL are:</p>

<ul>
<li><a href="http://culater.net/software/SIMBL/SIMBL.php">SIMBL</a>

<ul>
<li>Allows programs like SafariStand to work.</li>
</ul></li>
<li><a href="http://growl.info/">Growl</a>

<ul>
<li>You use Mac OS X and you don&#8217;t know what Growl is?</li>
</ul></li>
<li><a href="http://www.islayer.com/apps/istatmenus/">iStat Menus</a>

<ul>
<li>Various type of monitors for your system, in the menu bar!  Keeps you very in touch with your system. I used to use MenuMeters for the same purpose, but iStat Menus basically took that project and totally tricked it out, making it way better. </li>
</ul></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/critical-programs-for-me-now-up-and-running-on-snow-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trick Gmail into checking POP3 more often</title>
		<link>http://cameron.bracken.bz/trick-gmail-into-checking-pop3-more-often</link>
		<comments>http://cameron.bracken.bz/trick-gmail-into-checking-pop3-more-often#comments</comments>
		<pubDate>Wed, 02 Sep 2009 22:15:14 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=144</guid>
		<description><![CDATA[I finally got sick of gmail only checking my POP3 account every hour or so, so I resolved to fix it. If you google this, there are numerous solutions, I thought I would share my experience. I have access to a web/mail server so I used that. (1) Log on to the server. (2) Create [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got sick of gmail only checking my POP3 account every hour or so, so I resolved to fix it.  If you google this, there are numerous solutions, I thought I would share my experience.  I have access to a web/mail server so I used that.</p>

<p><strong>(1)</strong> Log on to the server. <strong>(2)</strong> Create the script <code>~/.mailthis</code></p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;x123456789x&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> mail mypop3account<span style="color: #000000; font-weight: bold;">@</span>abc.com</div>
</div></p>

<p><strong>(3)</strong> Then edit your crontab with <code>crontab -e</code> and put the following in there</p>

<p><div style="text-align: left;" class="wp_syntax">
<div class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>.mailthis</div>
</div></p>

<p>You must put the absolute path here. This will send a mail to your pop3 account every minute.</p>

<p><strong>(4)</strong> Finally create a filter in Gmail that says any message with the word x123456789x in it, delete it.  That way you don&#8217;t spam yourself.</p>

<p>Thats it, now gmail will check your mail every minute since you are getting messages every minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/trick-gmail-into-checking-pop3-more-often/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beta Verson of tikzDevice Released!</title>
		<link>http://cameron.bracken.bz/beta-verson-of-tikzdevice-released</link>
		<comments>http://cameron.bracken.bz/beta-verson-of-tikzdevice-released#comments</comments>
		<pubDate>Tue, 28 Jul 2009 22:10:52 +0000</pubDate>
		<dc:creator>cameron</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://cameron2.bracken.bz/?p=142</guid>
		<description><![CDATA[The tikzDevice package provides a new graphics device for R which enables direct output of graphics in a LaTeX-friendly way. The device output consists of files containing instructions for the TikZ graphics language and may be imported directly into LaTeX documents using the \input{} command. The beta version of tikzDevice is now available here. An [...]]]></description>
			<content:encoded><![CDATA[<p>The tikzDevice package provides a new graphics device for R which enables direct output of graphics in a LaTeX-friendly way. The device output consists of files containing instructions for the <a href="http://sourceforge.net/projects/pgf/">TikZ</a> graphics language and may be imported directly into LaTeX documents using the <code>\input{}</code> command.</p>

<p>The beta version of tikzDevice is now available <a href="https://r-forge.r-project.org/R/?group_id=440">here</a>.</p>

<p>An additional location for downloading source tarballs and windows binaries is <a href="http://github.com/Sharpie/RTikZDevice/downloads">here</a>.</p>

<p>There are many significant improvements compared to the alpha version:</p>

<h3>Features:</h3>

<ul>
<li>Rd documentation</li>
<li>A vignette</li>
<li>Proper string placement (because of string width and character metric calculations via latex)</li>
<li>Custom LaTeX headers, footers and typesetting engines</li>
<li>R-Level Annotation of graphics with TikZ commands (see <a href="http://www.texample.net">TeXample</a> for great examples of using TikZ commands)</li>
</ul>

<h3>Limitations:</h3>

<ul>
<li>ASCII character support only</li>
<li>No recognition of the R symbol font (i.e. no plotmath symbols)</li>
<li>A bevy of other quirks and &#8220;personality traits&#8221; that will make themselves known in time</li>
</ul>

<p>The device requires a working installation of LaTeX and the TIkZ package in order to function. This is because font metrics are currently calculated through direct calls to the LaTeX compiler. Unfortunately, this results in some significant computational overhead- it may take several seconds to create a plot that contains a lot of text. In an attempt to offset this behavior, the tikzDevice uses the filehash package to store font metrics that it has already computed. Hopefully the more the device is used, the faster it will be. We suggest reviewing the package vignette, especially the section &#8220;R Options That Affect Package Behavior &#8221; for more information on how the caching process works.</p>

<p>We think the package is quite usable as it is, but there are surely many bugs that we don&#8217;t know about. We welcome bug reports at our <a href="https://r-forge.r-project.org/tracker/?group_id=440">R-Forge tracker</a></p>

<p>Enjoy!</p>

<p><em>The tikzDevice Team</em></p>
]]></content:encoded>
			<wfw:commentRss>http://cameron.bracken.bz/beta-verson-of-tikzdevice-released/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
