> The background: forwarding the cout-stream in Dirk's example to R as below
> doesn't work in the R-GUI on Windows (or in an IDE such as Eclipse); but it
> does work if one runs an R session from the command line (that is, within
> the console -- no surprise that the stream is correctly forwarded)
Dirk's code relates to a question I meant to ask the experts for a while:
what's a safe and generic way to print C/C++ objects in an R session?
The background: forwarding the cout-stream in Dirk's example to R as below
doesn't work in the R-GUI on Windows (or in an IDE such as Eclipse); but it
doe
Not exactly sure what Dirk meant by "web view offered by R-Forge", but this
may work better (insofar as number of hits are concerned) than gmane and
mail-archive:
http://lists.r-forge.r-project.org/mailman/swish.cgi?query=listname%3D%22rcpp-devel%22
Jo
On Wed, Oct 27, 2010 at 8:42 PM, Dirk Edde
That was silly -- it's in the source folder on CRAN already, of course.
Apologies.
Maybe the tex-source can even be put on some website (for personal
> additions/alterations)?
>
>
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https:
Romain,
many thanks for the (incredibly speedy) reply.
You are missing that :
>
> > typeof( 1:2 )
> [1] "integer"
>
> So as.double creates a new numeric vector, but:
>
> > typeof( 1 )
> [1] "double"
>
> So as.double just returns its input. as.double is a primitive function in
> R, so it does not
Hello all,
Still taking my first steps, I've come across a feature (?) I cannot yet
make sense of. Consider a simple function with its argument passed by value:
SEXP fun(SEXP arg)
{
using namespace Rcpp;
NumericVector vec(arg);
for(int i=0; i arg <- 1:2 # or any vector of size > 1
> result <- R.
Dirk, Romain,
thanks for your replies.
I suspect I should have been more verbose. Here's what I was trying to do:
(1) The convolve function is the standard example for using .Call or .C; and
it is easy (using MinGW or even cl.exe in MSVC) to produce a DLL that one
can call from R (possibly modul
Hi,
I am (slowly and carefully) learning about Rcpp, and thought that compiling
the code in the RcppExamples package could be a good start.
MSVC seems to be out of the game (at least as far as the compiler is
concerned; using it as an editor may be another story), and it seems I
cannot avoid usin