[Rcpp-commits] r1433 - pkg/Rcpp/inst/doc/Rcpp-package

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jun 5 14:11:25 CEST 2010


Author: romain
Date: 2010-06-05 14:11:24 +0200 (Sat, 05 Jun 2010)
New Revision: 1433

Modified:
   pkg/Rcpp/inst/doc/Rcpp-package/Rcpp-package.Rnw
Log:
as asked

Modified: pkg/Rcpp/inst/doc/Rcpp-package/Rcpp-package.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-package/Rcpp-package.Rnw	2010-06-05 11:42:57 UTC (rev 1432)
+++ pkg/Rcpp/inst/doc/Rcpp-package/Rcpp-package.Rnw	2010-06-05 12:11:24 UTC (rev 1433)
@@ -105,22 +105,56 @@
 after \Sexpr{link("package.skeleton")}, that facilitates creation of a skeleton
 package using \pkg{Rcpp}. This is by far the simplest way.
 
+<<echo=FALSE>>=
+here <- getwd()
+gendir <- tempfile()
+dir.create( gendir )
+setwd( gendir )
+Rcpp.package.skeleton( "mypackage" )
+@
 
-%<<echo=FALSE>>=
-%here <- getwd()
-%gendir <- tempfile()
-%dir.create( gendir )
-%setwd( gendir )
-%<<>>=
-%Rcpp.package.skeleton( "mypackage" )
-%writeLines( system( "tree -n", intern = TRUE ) )
-%<<echo=FALSE>>=
-%setwd( here )
-%@
-%% Can we do manual ascii art here, please ?  I didn't even have tree(1)
-%% installed.  You may be able to assume 'ls -lR' but tree is too much
-%% I fear
+\begin{Hchunk}
+\begin{Hinput}
+\ttfamily\noindent
+\hlprompt{\usebox{\hlboxgreaterthan}{\ }}\hlfunctioncall{Rcpp.package.skeleton}\hlkeyword{(}{\ }\hlstring{"mypackage"}{\ }\hlkeyword{)}\mbox{}
+\normalfont
 
+\end{Hinput}
+
+\begin{Hinput}
+\ttfamily\noindent
+\hlprompt{\usebox{\hlboxgreaterthan}{\ }}\hlfunctioncall{writeLines}\hlkeyword{(}{\ }\hlfunctioncall{system}\hlkeyword{(}{\ }\hlstring{"tree"}\hlkeyword{,}{\ }\hlargument{intern}{\ }\hlargument{=}{\ }\hlnumber{TRUE}{\ }\hlkeyword{)}{\ }\hlkeyword{)}\mbox{}
+\normalfont
+
+\end{Hinput}
+
+\begin{Houtput}
+\ttfamily\noindent
+.\hspace*{\fill}\\
+\hlstd{}\usebox{\hlboxbacktick}--{\ }mypackage\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|--{\ }DESCRIPTION\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|--{\ }NAMESPACE\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|--{\ }R\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|{\ }{\ }{\ }\usebox{\hlboxbacktick}--{\ }rcpp\usebox{\hlboxunderscore}hello\usebox{\hlboxunderscore}world.R\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|--{\ }Read-and-delete-me\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|--{\ }man\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|{\ }{\ }{\ }|--{\ }mypackage-package.Rd\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }|{\ }{\ }{\ }\usebox{\hlboxbacktick}--{\ }rcpp\usebox{\hlboxunderscore}hello\usebox{\hlboxunderscore}world.Rd\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }\usebox{\hlboxbacktick}--{\ }src\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }{\ }{\ }{\ }{\ }|--{\ }Makevars\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }{\ }{\ }{\ }{\ }|--{\ }Makevars.win\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }{\ }{\ }{\ }{\ }|--{\ }rcpp\usebox{\hlboxunderscore}hello\usebox{\hlboxunderscore}world.cpp\hspace*{\fill}\\
+\hlstd{}{\ }{\ }{\ }{\ }{\ }{\ }{\ }{\ }\usebox{\hlboxbacktick}--{\ }rcpp\usebox{\hlboxunderscore}hello\usebox{\hlboxunderscore}world.h\hspace*{\fill}\\
+\hlstd{}\hspace*{\fill}\\
+\hlstd{}4{\ }directories,{\ }10{\ }files\hspace*{\fill}\\
+\hlstd{}\mbox{}
+\normalfont
+
+\end{Houtput}
+\end{Hchunk}
+
+
+
 \subsection{R code}
 
 The skeleton contains an \proglang{R} function \texttt{rcpp\_hello\_world}



More information about the Rcpp-commits mailing list