<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1426070827;
        mso-list-template-ids:1791410152;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal>Hello all.<o:p></o:p></p>

<p class=MsoNormal>Today, I posted a question on stackoverflow.com, but I was
advised to ask the question through this mailing list.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>So, here is the verbatim question from SO (<a
href="http://stackoverflow.com/questions/5991314/basic-documentation-for-rcpp">http://stackoverflow.com/questions/5991314/basic-documentation-for-rcpp</a>):<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;
margin-left:0cm;line-height:13.5pt;vertical-align:baseline'><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>I want to
look into rcpp to improve the speed of some of my R code without having to
resort to messy C++ code (I've had some success with that, but it looks like
code from hell).<o:p></o:p></span></p>

<p style='margin:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:
baseline;border-style:initial;border-color:initial;background-image:initial;
background-attachment:initial;background-origin: initial;background-clip: initial;
word-wrap: break-word;background-position:initial initial;background-repeat:
initial initial'><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>So, I checked the documentation provided with Rcpp, and also the
bundle of documents provided at</span><span class=apple-converted-space><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>&nbsp;</span></span><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'><a
href="http://dirk.eddelbuettel.com/code/rcpp.html"><span style='color:#0077CC;
border:none windowtext 1.0pt;padding:0cm'>Dirk Eddelbuettel's site</span></a>.
I installed and looked at RcppExamples, but (at least from its documentation)
most of these refer to RcppClassic?. Besides that, I did some googling but that
didn't result in answers to what seem like basic questions.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:22.5pt;text-indent:-18.0pt;line-height:
13.5pt;mso-list:l0 level1 lfo1;vertical-align:baseline'><![if !supportLists]><span
style='font-size:10.0pt;font-family:Symbol;color:black'><span style='mso-list:
Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>Do indexes in Rcpp work zero-based or one-based<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:22.5pt;text-indent:-18.0pt;line-height:
13.5pt;mso-list:l0 level1 lfo1;vertical-align:baseline'><![if !supportLists]><span
style='font-size:10.0pt;font-family:Symbol;color:black'><span style='mso-list:
Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>List provides both<span class=apple-converted-space>&nbsp;</span></span><code><span
style='font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>operator()</span></code><span
class=apple-converted-space><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>&nbsp;</span></span><span style='font-size:10.5pt;font-family:
"Arial","sans-serif";color:black'>and<span class=apple-converted-space>&nbsp;</span></span><code><span
style='font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>operator[]</span></code><span style='font-size:
10.5pt;font-family:"Arial","sans-serif";color:black'>, but apparently not<span
class=apple-converted-space>&nbsp;</span></span><code><span style='font-size:
10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>operator[[]]</span></code><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>. It is
not clear which ones are similar to<span class=apple-converted-space>&nbsp;</span></span><code><span
style='font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>[]</span></code><span
class=apple-converted-space><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>&nbsp;</span></span><span style='font-size:10.5pt;font-family:
"Arial","sans-serif";color:black'>and<span class=apple-converted-space>&nbsp;</span></span><code><span
style='font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>[[]]</span></code><span
class=apple-converted-space><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>&nbsp;</span></span><span style='font-size:10.5pt;font-family:
"Arial","sans-serif";color:black'>in R.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:22.5pt;text-indent:-18.0pt;line-height:
13.5pt;mso-list:l0 level1 lfo1;vertical-align:baseline'><![if !supportLists]><span
style='font-size:10.0pt;font-family:Symbol;color:black'><span style='mso-list:
Ignore'>&middot;<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>Is there any support for factors in Rcpp (there does not appear to
be any)?<o:p></o:p></span></p>

<p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;
margin-left:0cm;line-height:13.5pt;vertical-align:baseline;border-style:initial;
border-color:initial;background-image:initial;background-attachment:initial;
background-origin: initial;background-clip: initial;word-wrap: break-word;
background-position:initial initial;background-repeat:initial initial'><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>Note: in
fact I found some answers from the first example in Rcpp-introduction.pdf, but
that just felt like luck.<o:p></o:p></span></p>

<p style='margin:0cm;margin-bottom:.0001pt;line-height:13.5pt;vertical-align:
baseline;border-style:initial;border-color:initial;background-image:initial;
background-attachment:initial;background-origin: initial;background-clip: initial;
word-wrap: break-word;background-position:initial initial;background-repeat:
initial initial'><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>Also, my</span><span class=apple-converted-space><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>&nbsp;</span></span><code><span
style='font-size:10.5pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;
padding:0cm;background:#EEEEEE'>stl</span></code><span
class=apple-converted-space><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>&nbsp;</span></span><span style='font-size:10.5pt;font-family:
"Arial","sans-serif";color:black'>is very rusty, so if anybody can provide me
with a simple example where each element of a List is (e.g.)</span><span
class=apple-converted-space><span style='font-size:10.5pt;font-family:"Arial","sans-serif";
color:black'>&nbsp;</span></span><code><span style='font-size:10.5pt;
font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;
background:#EEEEEE'>print</span></code><span style='font-size:10.5pt;
font-family:"Arial","sans-serif";color:black'>-ed with an stl-style loop, that
would be neat.<o:p></o:p></span></p>

<p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;
margin-left:0cm;line-height:13.5pt;vertical-align:baseline;border-style:initial;
border-color:initial;background-image:initial;background-attachment:initial;
background-origin: initial;background-clip: initial;word-wrap: break-word;
background-position:initial initial;background-repeat:initial initial'><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>If
anybody wants to call me an idiot for not finding this information: go ahead
and make your day. Then make mine and point me to the docs I need :-)<o:p></o:p></span></p>

<p style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;
margin-left:0cm;line-height:13.5pt;vertical-align:baseline;border-style:initial;
border-color:initial;background-image:initial;background-attachment:initial;
background-origin: initial;background-clip: initial;word-wrap: break-word;
background-position:initial initial;background-repeat:initial initial'><span
style='font-size:10.5pt;font-family:"Arial","sans-serif";color:black'>As a
suggestions to Mr. Eddelbuettel and other Rcpp authors (I expect some of them
to read this): the class hierarchies and the like, provided by doxygen, are
really neat when you are already kneedeep into Rcpp, but for a beginner (in
Rcpp), I am more interested in a list of 'this method in this class does this
like that function in R' rather than 'you can find the declaration of this
operator in this header file'. After all, I understand one of the goals of Rcpp
is to lower the threshold for using C++ in R? Note: from what I have seen and
understood, I highly value the actual code of Rcpp and have the highest respect
for its creators. If the lack of basic documentation is merely a result of
'lack of resources', I would be willing to become a resource (e.g.: work on
'basic' documentation once I get through it myself).<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Nick Sabbe<o:p></o:p></p>

<p class=MsoNormal>--<o:p></o:p></p>

<p class=MsoNormal>ping: nick.sabbe@ugent.be<o:p></o:p></p>

<p class=MsoNormal>link: <span lang=NL><a href="http://biomath.ugent.be/"><span
lang=EN-US>http://biomath.ugent.be</span></a></span><o:p></o:p></p>

<p class=MsoNormal>wink: A1.056, Coupure Links 653, 9000 Gent<o:p></o:p></p>

<p class=MsoNormal><span lang=NL>ring: 09/264.59.36<o:p></o:p></span></p>

<p class=MsoNormal><span lang=NL><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=NL>-- Do Not Disapprove<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>