<?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>Andrew&#039;s musings &#187; R</title>
	<atom:link href="http://tresolini.org/andrew/blog/category/r/feed/" rel="self" type="application/rss+xml" />
	<link>http://tresolini.org/andrew/blog</link>
	<description>on research, analysis, visualization</description>
	<lastBuildDate>Wed, 18 Nov 2009 22:31:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>64-bit RMySQL on Mac OS X 10.6</title>
		<link>http://tresolini.org/andrew/blog/2009/11/06/hello-world/</link>
		<comments>http://tresolini.org/andrew/blog/2009/11/06/hello-world/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:57:40 +0000</pubDate>
		<dc:creator>Andrew T. Fiore</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://tresolini.org/andrew/blog/?p=1</guid>
		<description><![CDATA[
I&#8217;ve recently started working with R on 64-bit Macs with enough RAM to make a 64-bit binary worth using.  You can download R compiled for the x86_64 platform here.  (It will install a new GUI application called R64.app.  Make sure you run that one.)  But when I went to load one [...]]]></description>
			<content:encoded><![CDATA[<p>
I&#8217;ve recently started working with R on 64-bit Macs with enough RAM to make a 64-bit binary worth using.  You can download R compiled for the x86_64 platform <a href="http://r.research.att.com/">here</a>.  (It will install a new GUI application called R64.app.  Make sure you run that one.)  But when I went to load one of the modules I use the most, RMySQL, which allows you to load data frames directly as the result of a MySQL query, I found that the x86_64 binary version from <a href="http://cran.r-project.org/">CRAN</a> didn&#8217;t work.  The solution?</p>
<ol>
<li>Download and install <a href="http://dev.mysql.com/downloads/">MySQL</a>. Make sure you get the x86_64 version. As of this writing, it&#8217;s labeled &#8220;Mac OS X 10.5 (x86_64).&#8221; You don&#8217;t need to install the startup item for this to work, just the main package.</li>
<li>Download the source package of <a href="http://cran.r-project.org/web/packages/RMySQL/index.html">RMySQL</a>.</li>
<li>Open a terminal and navigate to the directory where the RMySQL tar.gz file was downloaded.</li>
<li>
<p>Run the following command:</p>
<pre>R CMD INSTALL --configure-args='--with-mysql-dir=/usr/local/mysql' \
RMySQL_0.7-4.tar.gz</pre>
</li>
</ol>
<p>That command is correct with the current version of RMySQL (0.7-4) and the default install location for MySQL (/usr/local/mysql).  Change those values as appropriate if you have a different version or different install location.</p>
]]></content:encoded>
			<wfw:commentRss>http://tresolini.org/andrew/blog/2009/11/06/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
