<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#3333FF">
<br>
<br>
On 03/21/2012 01:27 PM, Dirk Eddelbuettel wrote:
<blockquote cite="mid:20329.51526.110571.848847@max.nulle.part"
type="cite">
<pre wrap="">
I wonder if that should go to the Rcpp-FAQ instead of Rcpp-package?</pre>
</blockquote>
<br>
I believe in the dictatorial approach-- your vision, you decide.<br>
<br>
Diff -u looked at your answer to Hadley's question and suggests the
following changes to Rcpp-FAQ.Rnw:<br>
<br>
--- Rcpp/inst/doc/Rcpp-FAQ/Rcpp-FAQ.Rnw 2012-01-25
16:50:01.000000000
+0100 <br>
+++ Rcpp-FAQ.Rnw 2012-03-21 14:01:00.000000000
+0100
<br>
@@ -157,6 +157,7
@@
<br>
@
<br>
<br>
\subsection{How do I quickly prototype my code
?} <br>
+\subsubsection{Using
\pkg{inline}}
<br>
\label{using-inline}
<br>
<br>
The \pkg{inline} package \citep{CRAN:inline} provides the
functions
<br>
@@ -195,6 +196,16
@@
<br>
The \texttt{verbose} argument of \Sexpr{link("cxxfunction")} is
very <br>
useful as it shows how \pkg{inline} runs the
show.
<br>
<br>
+\subsubsection{As a package}<br>
+\label{prototyping-packages}<br>
+Alternately, one can work directly with the package structure.
Changes to \proglange{C++} code can be compiled and tested from the
command line via:<br>
+<<echo=FALSE>>=<br>
+ $ R CMD INSTALL mypkg && r -lmypkg -e
'someFunctionToTickle(3.14)'<br>
+@<br>
+ <br>
+The second command calls 'r' (littler), not 'R'. Littler is an
alternative front end to GNU R designed for '#!' (hashbang)
scripting. It has fast start-up times and gives a guaranteed clean
slate. The -l option calls 'library(mypkg)' before executing the
\proglang{R} expression. Littler is available via most Linux
distribution's package management systems. The project homepage is
\href{<a class="moz-txt-link-freetext" href="http://code.google.com/p/littler/">http://code.google.com/p/littler/</a>.}<br>
+<br>
+<br>
\subsection{How do I convert my prototyped code to a package ?}<br>
\label{from-inline-to-package}<br>
<br>
<br>
<br>
</body>
</html>