<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for BabelGraph</title>
	<atom:link href="http://www.babelgraph.org/wp/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.babelgraph.org/wp</link>
	<description>health care, medicine, R, social network analysis, random nerdy stuff</description>
	<lastBuildDate>Wed, 19 Sep 2012 08:48:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by icecoldo</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-236</link>
		<dc:creator>icecoldo</dc:creator>
		<pubDate>Wed, 19 Sep 2012 08:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-236</guid>
		<description>Thanks for a great article, 

Error in compileCode: I also got this nasty error, but fixed it with proper path&#039;s, thanks to this awesome guide:

http://tonybreyal.wordpress.com/2011/12/07/installing-rcpp-on-windows-7-for-r-and-c-integration/#comment-3152</description>
		<content:encoded><![CDATA[<p>Thanks for a great article, </p>
<p>Error in compileCode: I also got this nasty error, but fixed it with proper path&#8217;s, thanks to this awesome guide:</p>
<p><a href="http://tonybreyal.wordpress.com/2011/12/07/installing-rcpp-on-windows-7-for-r-and-c-integration/#comment-3152" rel="nofollow">http://tonybreyal.wordpress.com/2011/12/07/installing-rcpp-on-windows-7-for-r-and-c-integration/#comment-3152</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by Simono101</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-203</link>
		<dc:creator>Simono101</dc:creator>
		<pubDate>Thu, 19 Jul 2012 08:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-203</guid>
		<description>Hi Josh,
Thanks. I tried your suggestion and I got a different problem to you!
First the compilation error:
&lt;code&gt;Error in compileCode(f, code, language = language, verbose = verbose) : 
  Compilation ERROR, function(s)/method(s) not created! cygwin warning:
&lt;/code&gt;
Then some warnings about msdos style paths.
Then the relevant error messages, about comparison between signed and unsigned integers:
&lt;code&gt;file1fdc365c273.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
file1fdc365c273.cpp: In function &#039;SEXPREC* file1fdc365c273(SEXPREC*)&#039;:
file1fdc365c273.cpp:58:38: warning: comparison between signed and unsigned integer expressions
make: *** [file1fdc365c273.o] Error 1
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Josh,<br />
Thanks. I tried your suggestion and I got a different problem to you!<br />
First the compilation error:<br />
<code>Error in compileCode(f, code, language = language, verbose = verbose) :<br />
  Compilation ERROR, function(s)/method(s) not created! cygwin warning:<br />
</code><br />
Then some warnings about msdos style paths.<br />
Then the relevant error messages, about comparison between signed and unsigned integers:<br />
<code>file1fdc365c273.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in<br />
file1fdc365c273.cpp: In function 'SEXPREC* file1fdc365c273(SEXPREC*)':<br />
file1fdc365c273.cpp:58:38: warning: comparison between signed and unsigned integer expressions<br />
make: *** [file1fdc365c273.o] Error 1<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by Joshua Ulrich</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-202</link>
		<dc:creator>Joshua Ulrich</dc:creator>
		<pubDate>Mon, 16 Jul 2012 15:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-202</guid>
		<description>Simon,
I had to replace &lt;code&gt;p = max(0,p); p = min(1,p);&lt;/code&gt; with &lt;code&gt;p = max(0.0,p); p = min(1.0,p);&lt;/code&gt;.  Even then, I got an error regarding how the C++ dataframe was being constructed and a segfault if I tried to re-run the code that threw the error.  FWIW, Dirk couldn&#039;t replicate my issue, so you may not have a problem.</description>
		<content:encoded><![CDATA[<p>Simon,<br />
I had to replace <code>p = max(0,p); p = min(1,p);</code> with <code>p = max(0.0,p); p = min(1.0,p);</code>.  Even then, I got an error regarding how the C++ dataframe was being constructed and a segfault if I tried to re-run the code that threw the error.  FWIW, Dirk couldn&#8217;t replicate my issue, so you may not have a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by Simono101</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-201</link>
		<dc:creator>Simono101</dc:creator>
		<pubDate>Sat, 14 Jul 2012 10:55:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-201</guid>
		<description>Hi Gary,
Thanks for the advice. That has changed things a bit. Either of your solutions now throws up a different error (the same in either case), which is:
&lt;code&gt;file1f382c842ee5.cpp:28:25: error: no matching function for call to &#039;max(int, double&amp;)&#039;
file1f382c842ee5.cpp:28:44: error: no matching function for call to &#039;min(int, double&amp;)&#039;
&lt;/code&gt;
My guess is it&#039;s something to do with the variable type which is being passed to &lt;code&gt;min&lt;/code&gt; and &lt;code&gt;max&lt;/code&gt;  functions?

Cheers, Simon</description>
		<content:encoded><![CDATA[<p>Hi Gary,<br />
Thanks for the advice. That has changed things a bit. Either of your solutions now throws up a different error (the same in either case), which is:<br />
<code>file1f382c842ee5.cpp:28:25: error: no matching function for call to 'max(int, double&amp;)'<br />
file1f382c842ee5.cpp:28:44: error: no matching function for call to 'min(int, double&amp;)'<br />
</code><br />
My guess is it&#8217;s something to do with the variable type which is being passed to <code>min</code> and <code>max</code>  functions?</p>
<p>Cheers, Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by gary</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-200</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sat, 14 Jul 2012 00:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-200</guid>
		<description>Exactly! Thanks ;-)</description>
		<content:encoded><![CDATA[<p>Exactly! Thanks <img src='http://www.babelgraph.org/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by gary</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-199</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sat, 14 Jul 2012 00:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-199</guid>
		<description>Hi Simon,
You might try replacing &lt;code&gt;max&lt;/code&gt; with &lt;code&gt;std::max&lt;/code&gt; and doing the same for &lt;code&gt;min&lt;/code&gt;.  Alternatively, try placing &lt;code&gt;using namespace std;&lt;/code&gt; at the beginning of your source.  Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Simon,<br />
You might try replacing <code>max</code> with <code>std::max</code> and doing the same for <code>min</code>.  Alternatively, try placing <code>using namespace std;</code> at the beginning of your source.  Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by gary</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-198</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sat, 14 Jul 2012 00:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-198</guid>
		<description>To actually compare &lt;i&gt;significance&lt;/i&gt; it would be interesting if the &lt;code&gt;rbenchmark&lt;/code&gt; package also included information about the distribution of the trial times, such as the standard deviation.</description>
		<content:encoded><![CDATA[<p>To actually compare <i>significance</i> it would be interesting if the <code>rbenchmark</code> package also included information about the distribution of the trial times, such as the standard deviation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by gary</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-197</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sat, 14 Jul 2012 00:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-197</guid>
		<description>A great point about vectorization in R that I hadn&#039;t considered (also made below many of the posters).  The example above does lend itself to vectorization, but many agent-based models do not since there are dependencies or other dynamic computations happening between agents that would not be vectorizable...  &lt;code&gt;Rcpp&lt;/code&gt; fills that particular niche.</description>
		<content:encoded><![CDATA[<p>A great point about vectorization in R that I hadn&#8217;t considered (also made below many of the posters).  The example above does lend itself to vectorization, but many agent-based models do not since there are dependencies or other dynamic computations happening between agents that would not be vectorizable&#8230;  <code>Rcpp</code> fills that particular niche.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by gary</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-196</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Sat, 14 Jul 2012 00:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-196</guid>
		<description>thanks for writing a great package!</description>
		<content:encoded><![CDATA[<p>thanks for writing a great package!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rcpp is smoking fast for agent-based models in data frames by Simono101</title>
		<link>http://www.babelgraph.org/wp/?p=358#comment-195</link>
		<dc:creator>Simono101</dc:creator>
		<pubDate>Fri, 13 Jul 2012 11:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.babelgraph.org/wp/?p=358#comment-195</guid>
		<description>Hi,
Thanks for this, I found it very interesting. I should say that I was not able to compile your C++ code (copied and pasted from the site) to test this myself (I wanted to have a look and see if it made any difference in speed sorting the cohort data.frame by sex for a much larger cohort). When I tried to compile the code I got the following errors:
&lt;code&gt;Error in compileCode(f, code, language = language, verbose = verbose) : 
  Compilation ERROR, function(s)/method(s) not created! cygwin warning:
  MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.1/etc/x64/Makeconf
  Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.1/etc/x64/Makeconf
  CYGWIN environment variable option &quot;nodosfilewarning&quot; turns off this warning.
  Consult the user&#039;s guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
fileabc1779658e.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
fileabc1779658e.cpp: In function &#039;double vaccinate_cxx(double, int, int)&#039;:
fileabc1779658e.cpp:27:20: error: &#039;max&#039; was not declared in this scope
fileabc1779658e.cpp:27:34: error: &#039;min&#039; was not declared in this scope
fileabc1779658e.cpp: In function &#039;SEXPREC* fileabc1779658e(SEXPREC*)&#039;:
fileabc1779658e.cpp:57:38: warning: comparison between signed and unsigned integer expressions
make: *** [fileabc1779658e.o] Error 1
In addition: Warning message:
running command &#039;C:/PROGRA~1/R/R-215~1.1/bin/x64/R CMD SHLIB fileabc1779658e.cpp 2&gt; fileabc1779658e.cpp.err.txt&#039; had status 1 &lt;/code&gt;

Can anyone point me in the direction of why this might be occuring (sorry - I am just starting out in C++ and using Rcpp).</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for this, I found it very interesting. I should say that I was not able to compile your C++ code (copied and pasted from the site) to test this myself (I wanted to have a look and see if it made any difference in speed sorting the cohort data.frame by sex for a much larger cohort). When I tried to compile the code I got the following errors:<br />
<code>Error in compileCode(f, code, language = language, verbose = verbose) :<br />
  Compilation ERROR, function(s)/method(s) not created! cygwin warning:<br />
  MS-DOS style path detected: C:/PROGRA~1/R/R-215~1.1/etc/x64/Makeconf<br />
  Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-215~1.1/etc/x64/Makeconf<br />
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.<br />
  Consult the user's guide for more details about POSIX paths:<br />
    <a href="http://cygwin.com/cygwin-ug-net/using.html#using-pathnames" rel="nofollow">http://cygwin.com/cygwin-ug-net/using.html#using-pathnames</a><br />
fileabc1779658e.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in<br />
fileabc1779658e.cpp: In function 'double vaccinate_cxx(double, int, int)':<br />
fileabc1779658e.cpp:27:20: error: 'max' was not declared in this scope<br />
fileabc1779658e.cpp:27:34: error: 'min' was not declared in this scope<br />
fileabc1779658e.cpp: In function 'SEXPREC* fileabc1779658e(SEXPREC*)':<br />
fileabc1779658e.cpp:57:38: warning: comparison between signed and unsigned integer expressions<br />
make: *** [fileabc1779658e.o] Error 1<br />
In addition: Warning message:<br />
running command 'C:/PROGRA~1/R/R-215~1.1/bin/x64/R CMD SHLIB fileabc1779658e.cpp 2&gt; fileabc1779658e.cpp.err.txt' had status 1 </code></p>
<p>Can anyone point me in the direction of why this might be occuring (sorry &#8211; I am just starting out in C++ and using Rcpp).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
