Attached is a patch relative to pkg/Rcpp/inst/doc/Rcpp-quickref.
I added Douglas' suggestion to the Matrix section. In addition are
reference examples for inline and the random functions.
There was a recent list question about dnorm, and I ran across similar
confusion. Is the default argument c
Le 07/12/10 11:15, Christian Gunning a écrit :
Attached is a patch relative to pkg/Rcpp/inst/doc/Rcpp-quickref.
Thanks. I will have a look tonight if nobody else does it before me
(please do).
I added Douglas' suggestion to the Matrix section. In addition are
reference examples for inline
> It is useful if you actually send us what you tried to compile, hoiw it
> failed, why you though it would work, etc ...
Sorry. My primary goal for the night was the doc; by the end, I
wasn't sure which were the useful reject attempts. I'll try to be more
specific in the future.
> You cannot h
Le 07/12/10 14:11, Christian Gunning a écrit :
It is useful if you actually send us what you tried to compile, hoiw it
failed, why you though it would work, etc ...
Sorry. My primary goal for the night was the doc; by the end, I
wasn't sure which were the useful reject attempts. I'll try to b
Hi Romain,
Thank you very much!
BTW, I really like the RCPP_MODULE very much.
Please tell me if I can contribute to RCpp as a developer or a helper.
Best regards,
Tama Ma
On Dec 6, 2010, at 7:31 PM, Romain Francois wrote:
> Le 05/12/10 20:09, Tama Ma a écrit :
>> Dear
I'm again trying to define instances of the wrap template for C++
classes that have data members defined in Rcpp.h
A stand-alone example, which is rather lengthy, is enclosed. In this
example I am unsuccessful in using the "intrusive" formulation
described in the "Extending Rcpp" vignette. I wil
On 7 December 2010 at 14:38, Tama Ma wrote:
| BTW, I really like the RCPP_MODULE very much.
|
| Please tell me if I can contribute to RCpp as a developer or a helper.
Rcpp, just like many other projects, keeps a TODO file (in sources in SVN and
tarballs) which we update every now and
On looking more closely I can't use cxxfunction with plugin="Rcpp" to
test this because the plugin inserts
#include
before the user includes and some parts in the user includes need to
be declared before Rcpp.h is included. I'll create a small package.
On Tue, Dec 7, 2010 at 10:06 AM, Douglas
Yes. One cheap way to deal with this is:
settings <- getPlugin( "Rcpp" )
settings$includes <- ..
cxxfunction( .., settings = settings )
I'm looking at the rest of the first email now.
Romain
Le 07/12/10 17:32, Douglas Bates a écrit :
On looking more closely I can't use cxxfunction with plugin
I have created a small package available as
http://www.stat.wisc.edu/~bates/wrap_1..0.tar.gz that uses the
"non-intrusive" approach.
Attempts to compile produce
dtrMatrix.h:17: error: field ‘d_dat’ has incomplete type
dtrMatrix.h:18: error: field ‘d_dimnames’ has incomplete type
dtrMatrix.h: In me
Le 07/12/10 18:09, Douglas Bates a écrit :
I have created a small package available as
http://www.stat.wisc.edu/~bates/wrap_1..0.tar.gz that uses the
"non-intrusive" approach.
Attempts to compile produce
dtrMatrix.h:17: error: field ‘d_dat’ has incomplete type
dtrMatrix.h:18: error: field ‘d_dim
I need to call R functions through a C++ subroutine. The problem is
that, as many have pointed out, you can't call the RInside environment
more than once. So how do I get my subroutine to "know" about R? Can I
pass something along? I am not really a C++ programmer, so I apologize
for my igno
On 7 December 2010 at 12:00, Eileen Meyer wrote:
| I need to call R functions through a C++ subroutine. The problem is
| that, as many have pointed out, you can't call the RInside environment
| more than once.
News to me.
What you cannot do is _instantiante more than one RInside object_ bec
Eileen,
To make this a little more instructive, please find a repaired single-file
version of your program below. You can of course split off a header file and
a file for the function but there is no need. Below it is a quick Makefile
based on the aforementioned Makefile from the RInside exampl
> Your contributions are useful. It helps us understanding how people from
> outside the team use Rcpp.
Thanks. As per Dirk's comment, I went back to the unit tests and will
use those as guidance for quickref.
The problem I got stuck on looks to be the use of int versus double
values for dnorm's
On 7 December 2010 at 21:25, Christian Gunning wrote:
| > Your contributions are useful. It helps us understanding how people from
| > outside the team use Rcpp.
|
| Thanks. As per Dirk's comment, I went back to the unit tests and will
| use those as guidance for quickref.
|
| The problem I got
16 matches
Mail list logo