It is curious that just last night I gave up on a package development of some
two months to regard a work-around requiring inline compilation for production
activity.
I had then just discovered that the compiled objects returned NULL pointers
when I tried to save the environment.
Now, I really
Dear Rcpp Users,
I would like to concatenate two NumericVectors. For instance:
...
NumericVector a( some_STL_vector ) ;
NumericVector b( some_STL_vector ) ;
... // using Rcpp sugar on a and b
a.insert( a.end(), b.begin(), b.end() );
... // using Rcpp sugar on a
This would work fine if a an
Hi Dirk,
> Before you look at RcppArmadillo, look at Rcpp itself:
>
>- 22 unit test files
Are you referring to these files as test files.
~/Documents/src/Rsrc/cran/Rcpp_0.9.13/inst/unitTests$ ls runit.*.R |wc -l
22
>- 349 unit test functions
And here is how you get the number 349?
/Do
Hi Martin,
On 21 August 2012 at 15:38, Martin Oberhuber wrote:
| Dear Rcpp Users,
|
| I would like to concatenate two NumericVectors. For instance:
|
| ...
| NumericVector a( some_STL_vector ) ;
| NumericVector b( some_STL_vector ) ;
|
| ... // using Rcpp sugar on a and b
|
| a.insert( a.end
On 21 August 2012 at 20:55, Peng Yu wrote:
| Hi Dirk,
|
| > Before you look at RcppArmadillo, look at Rcpp itself:
| >
| >- 22 unit test files
|
| Are you referring to these files as test files.
|
| ~/Documents/src/Rsrc/cran/Rcpp_0.9.13/inst/unitTests$ ls runit.*.R |wc -l
| 22
|
| >- 3
Hi,
"numeric" is specified as the signature. But it does not say whether
it should be a matrix or a vector. The following example just assume
the input is matrix. But should there be some checking to make sure
the input is indeed a matrix before the conversion to NumericMatrix?
Or the check has to
On 21 August 2012 at 21:43, Peng Yu wrote:
| Hi,
|
| "numeric" is specified as the signature. But it does not say whether
a) Not that even "numeric" is just a placeholder. You could replace it with
"groucho_marx" and the code still runs.
The only thing really used is the _left-hand side_
On 21 August 2012 at 21:08, Dirk Eddelbuettel wrote:
| On 21 August 2012 at 15:38, Martin Oberhuber wrote:
| | Any ideas on how I could concatenate the two vectors using a different
| | methodology? The reason I would like to use NumericVectors here is because
I am
|
| One easy way: Compute n =
> b) In R, vector and matrix are rather close -- almost the same. Matrices are
>vectors which happen to have a dimension attribute. We make that point in
>the documentation.
I can't find it in the document. Would please let me know which
document (filename) and page this is mentioned? BTW,
>> RUnit works, but the setup is not the easiest. If someone has ideas for
>> better solutions, by all means implement those. Unit testing has helped us
>> many times, and I consider it to be a very important part of package
>> development.
>
> How (or in what aspect) RUnit is better than devtool
On 12-08-21 09:54 PM, Darren Cook wrote:
RUnit works, but the setup is not the easiest. If someone has ideas for
better solutions, by all means implement those. Unit testing has helped us
many times, and I consider it to be a very important part of package
development.
How (or in what aspect)
On 12-08-21 08:30 PM, Peng Yu wrote:
BTW, the pdf document (e.g. Rcpp-introduction.pdf) can not be
searched correctly in Acrobat (but it can be search correctly in
skim). For example, if I search for "matri", I will get to "some" in
"assigns some values".
I don't use Acrobat, but searching for
> I think what Peng meant as an alternative to Runit is not the devtools
> itself, but testthat. See
> http://cran.r-project.org/web/packages/testthat/ and
> https://github.com/hadley/test_that
>
> Philosophically, testthat draws on Ruby test frameworks like rspec and
> other BDD tools.
Thanks! I
13 matches
Mail list logo