Romain Francois, Professional R Enthusiast - Tag - Rcpp - CommentsIndependant statistical/R consultant2013-03-24T15:53:22+01:00Romain Francoisurn:md5:2cdb21a695f56bfe2b31ee2133c51b42Dotclearhighlight 0.2-5 - Romainurn:md5:cb6eddb91be1da9f3cca735341b450b62010-12-08T09:20:56+01:00Romain<p>Obviously, contributions are welcome <img src="/themes/default/smilies/wink.png" alt=";-)" class="smiley" /><br />
<a href="https://r-forge.r-project.org/projects/highlight/" title="https://r-forge.r-project.org/projects/highlight/" rel="nofollow">https://r-forge.r-project.org/proje...</a></p>highlight 0.2-5 - Yihuiurn:md5:85701f3701de4343b3dddf171af8fc872010-12-08T03:42:32+01:00Yihui<p>Great!! I've been longing for this for months...</p>highlight 0.2-5 - Romainurn:md5:9fbd59a5bd93faffbf8f7094d3342b942010-12-07T19:26:13+01:00Romain<p>Ah yes. I keep forgetting about this. I'll try next time around. I use code more often than figures, so it skips my mind.</p>highlight 0.2-5 - Yihuiurn:md5:09128879d4604a59f5618448ef9ab5762010-12-07T17:23:37+01:00Yihui<p>Thanks for the great job, Romain.</p>
<p>Is there a way to center the figures without affecting the code (still align to the left)? This driver does not use the Verbatim environment, and I don't want to manually insert LaTeX code like begin{center} around my figures. There is no way in Sweave to specify the alignment of figures, AFAIK. Currently I have to sacrifice the highlighting feature when I want to produce plots in Sweave (i.e. use Sweave's default Verbatim environment).</p>Rcpp svn revision 2000 - Rhileighurn:md5:5caa8e7bf06deaf01c6b8ff634d2eaf12010-11-22T23:11:40+01:00Rhileigh<p>Thanks for the code! I particularly like the way the graphs look pencil-drawn.</p>
<p>Although it's late, I thought I'd share the one-liner for downloading the source data:<br />
svn log svn://svn.r-forge.r-project.org/svnroot/rcpp >rcpp_svn.log</p>LondonR Rcpp slides - françoisurn:md5:cc3514f06f7293e5e78d1a729032cb382010-11-08T14:15:44+01:00françois<p>ahhh le viaduc de Millau, ça c'est un joli coin et je sais de quoi je parle <img src="/themes/default/smilies/wink.png" alt=";-)" class="smiley" /> !!<br />
J'invite tout le monde a visiter cette belle et cool région qu'est l'Aveyron!<br />
Allez, a bientot Rom1,<br />
fran</p>LondonR Rcpp slides - Romainurn:md5:0c73bdf45a6037f5192d2d71e0f8e0fb2010-10-10T19:54:09+02:00Romain<p>Yep. This is an amazing bridge. Here is the official website. <a href="http://www.leviaducdemillau.com/" title="http://www.leviaducdemillau.com/" rel="nofollow">http://www.leviaducdemillau.com/</a></p>
<p>That is (or was at some point) the tallest bridge on earth and is a blessing (believe) me for tourist travelling to france during the summer. Millau used to be quite a bottleneck in traffic jam, up to three hours to go all the way down and up. Now it takes something like 5 minutes to cross the bridge.</p>
<p>Rcpp is even better since you don't need to pay for it, whereas the viaduc is charged.</p>LondonR Rcpp slides - Yihuiurn:md5:c93b9633a53b0e37b51fb2eb20b6e0b22010-10-07T22:59:58+02:00Yihui<p>Romain, is the bridge on the 3rd page REAL? I mean, how can we drive on that bridge?... In fact I wanted to ask this at useR!2010 but it seemed to be off-topic.</p>Rcpp 0.8.0 - Annurn:md5:c55478b70cfd86528ad7065cccf1a1a02010-06-11T08:04:20+02:00Ann<p>Thanks for information!</p>highlight 0.2-0 - Romain Francoisurn:md5:0465327c80cf8234078dc66dba71b3712010-06-07T09:55:52+02:00Romain Francois<p>Hi,</p>
<p>Thanks for the report. I can reproduce it and will try to fix it for the next release.</p>
<p>Can you file a ticket in the bug tracker. <a href="https://r-forge.r-project.org/tracker/?group_id=384" title="https://r-forge.r-project.org/tracker/?group_id=384" rel="nofollow">https://r-forge.r-project.org/track...</a></p>
<p>Romain</p>highlight 0.2-0 - Pedrourn:md5:fe5c736a2b65ed275703613a60c429fa2010-06-05T11:32:10+02:00Pedro<p>Hi,</p>
<p>I investigated a little further.<br />
The bug happens only with:</p>
<p>> driver <- HighlightWeaveLatex(boxes = TRUE)</p>
<p>with</p>
<p>> driver <- HighlightWeaveLatex(boxes = FALSE)</p>
<p>everything is fine. <img src="/themes/default/smilies/smile.png" alt=":-)" class="smiley" /></p>
<p>Thanks for releasing such nice package!</p>
<p>Pedro.</p>highlight 0.2-0 - Pedrourn:md5:051f94fd92a23e4730f461d7ecb30b102010-06-05T11:04:10+02:00Pedro<p>Great output highlighting with Sweave in R (latest version)<br />
however figures are displayed on the right margin. Is this a bug? or am I doing something wrong?</p>
<p>Minimal example:</p>
<p>\documentclass<a href="http://romainfrancois.blog.free.fr/index.php?post/2010/05/31/[pdftex" title="[pdftex" rel="nofollow">[pdftex</a>]{article}</p>
<p>\usepackage{Sweave}<br />
\SweaveOpts{eval=TRUE}<br />
\begin{document}</p>
<p>\section{Boxplot}<br />
Then we generate some artificial data, and make a boxplot.</p>
<p><<fig=TRUE>>=<br />
y <- rnorm(200)<br />
boxplot(y)<br />
@</p>
<p>\end{document}</p>
<p>If you e-mail to me, I can send the pdf.</p>
<p>Using R 2.11.1 (Windows Vista 32)<br />
highlight 0.2-0<br />
MikTeX 2.8</p>
<p>Pedro.</p>Rcpp 0.7.2 - Vinhurn:md5:b7e6ae818a4cb4ddadced7d6bc53ff492010-01-14T17:05:23+01:00Vinh<p>Oh yes, I keep forgetting about lm.fit and glm.fit. I guess the only extra step would be model.matrix(), something along the line of:</p>
<p>fit <- lm.fit(y, x=model.matrix(y~ x1+...+xn), weights=myweights)</p>
<p>Anyhow, my hypothetical question is meant to see the benefits of calling R functions in Rcpp. I was lazy and wanted to know the added benefits without trying it myself =).</p>Rcpp 0.7.2 - Romain Francoisurn:md5:ffd0c1eb608406d71901a3ea7625a9f42010-01-14T10:29:50+01:00Romain Francois<p>Hi,</p>
<p>you might want to start with using the much faster lm.fit when doing simulations, it is a bit more work than just using lm or glm but it pays off.</p>
<p>For the speed, I don't know, it is worth a shot. Note that Rcpp has its <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="nofollow">mailing list</a> where more people (at least one more) would be able to answer this. </p>
<p>Romain</p>Rcpp 0.7.2 - Vinhurn:md5:6406ae735505de6227b4cc8336cc40e42010-01-13T21:34:14+01:00Vinh<p>Wow this makes me look like I want to try out Rcpp as playing in C looks a lot simpler.</p>
<p>Out of curiosity, suppose I were to do a simulation with linear regression and record the coefficients and standard error. Would doing such a loop using Rcpp be a lot faster than the loop in R? That is, all the benefits of doing things in C are still there. I'm wondering because the linear regression function lm() is still being but in C instead of R now. Thanks!</p>
<p>Vinh</p>