Re: [Rcpp-devel] Rcpp compilation warnings

2014-06-09 Thread Wilhelm Tell
I changed the declaration of baseYear to  // static inline const unsigned int baseYear()  static inline unsigned int baseYear()  The other warning is from extra sources of R core (src/extra/tzone/localtime.c). On the other side, the Intel compilers are free on Linux for non-commercial use.

Re: [Rcpp-devel] type information about elements in Rcpp::List

2014-06-09 Thread Chaomei Lo
Hi, Romain, Thanks a lot for the quick reply !! Suffix with << L >> works for me for both Rf_isInteger and is. On Mon, Jun 9, 2014 at 12:43 PM, Romain François wrote: > > Le 9 juin 2014 à 21:40, Chaomei Lo a écrit : > > > > > I have a R list something like this - > > > > op=list(a=200, b="tes

Re: [Rcpp-devel] type information about elements in Rcpp::List

2014-06-09 Thread Romain François
Le 9 juin 2014 à 21:40, Chaomei Lo a écrit : > > I have a R list something like this - > > op=list(a=200, b="test", c=4.5) > when I pass it as an argument to Rcp Export function which the code looks > like this in below. > > > int n = xlist.length(

Re: [Rcpp-devel] type information about elements in Rcpp::List

2014-06-09 Thread Chaomei Lo
I have a R list something like this - op=list(a=200, b="test", c=4.5) when I pass it as an argument to Rcp Export function which the code looks like this in below. int n = xlist.length(); for (int I=0; I < n; I++) { SEXP s = xlist[I]; if (Rf_isInteger(

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-09 Thread Dirk Eddelbuettel
On 9 June 2014 at 17:45, Matteo Fasiolo wrote: | Hi Dirk |   | | | Saw that -- mvnfast looks quite interesting with OpenMP-based RNG! | | | | | Yes, using a single header parallel RNG, which is compatible with C++11 random | distributions made | all the work much easier! The C++11 part

Re: [Rcpp-devel] About the Rcpp Gallery (Was: Speed up of the data.frame creation in DataFrame.h)

2014-06-09 Thread Kevin Ushey
It's tucked away a bit at the bottom of the page, but it brings you here: https://github.com/jjallaire/rcpp-gallery/wiki/Contributing-to-the-Rcpp-Gallery On Mon, Jun 9, 2014 at 9:45 AM, Tim Keitt wrote: > I don't see the "contributing" link... ;-) > > THK > > > On Mon, Jun 9, 2014 at 10:45

Re: [Rcpp-devel] About the Rcpp Gallery (Was: Speed up of the data.frame creation in DataFrame.h)

2014-06-09 Thread Tim Keitt
I don't see the "contributing" link... ;-) THK On Mon, Jun 9, 2014 at 10:45 AM, Dirk Eddelbuettel wrote: > > On 9 June 2014 at 10:12, Tim Keitt wrote: > | Yup, that example is really helpful. > > I am surprised readers of the list are so unaware of the Rcpp Gallery at > > http://gallery.rcpp

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-09 Thread Matteo Fasiolo
Hi Dirk > > Saw that -- mvnfast looks quite interesting with OpenMP-based RNG! > | > Yes, using a single header parallel RNG, which is compatible with C++11 random distributions made all the work much easier! The C++11 part is creating lots of problems, though. > > Yes. For the two (smaller)

Re: [Rcpp-devel] About the Rcpp Gallery (Was: Speed up of the data.frame creation in DataFrame.h)

2014-06-09 Thread Dirk Eddelbuettel
On 9 June 2014 at 10:12, Tim Keitt wrote: | Yup, that example is really helpful. I am surprised readers of the list are so unaware of the Rcpp Gallery at http://gallery.rcpp.org Please do consider this as a prime resources of commented and tested example code --- and do also consider contrib

Re: [Rcpp-devel] Rcpp compilation warnings

2014-06-09 Thread Dirk Eddelbuettel
On 9 June 2014 at 08:09, Wilhelm Tell wrote: | | I am using Intel compilers for compiling R and the packages. I have these | warnings when compiling Rccp (0.11.2): | | 1) In file included from ../inst/include/Rcpp.h(57), | from Date.cpp(31): | ../inst/include/Rcpp/Date.h(83): w

Re: [Rcpp-devel] Rcpp compilation warnings

2014-06-09 Thread Wilhelm Tell
1) const 2) *sp On Monday, June 9, 2014 5:09 PM, Wilhelm Tell wrote: I am using Intel compilers for compiling R and the packages. I have these warnings when compiling Rccp (0.11.2):  1) In file included from ../inst/include/Rcpp.h(57), from Date.cpp(31): ../inst/include

Re: [Rcpp-devel] Speed up of the data.frame creation in DataFrame.h

2014-06-09 Thread Tim Keitt
Yup, that example is really helpful. Note that if you do: the_list.attr("row.names") = IntegerVector::create(NA_INTEGER, -nrow); it will create implicit row names from 1:nrow. The number of rows must be negative. THK On Sun, Jun 8, 2014 at 8:03 PM, Dmitry Nesterov wrote: > Dirk, > The exam

[Rcpp-devel] Rcpp compilation warnings

2014-06-09 Thread Wilhelm Tell
I am using Intel compilers for compiling R and the packages. I have these warnings when compiling Rccp (0.11.2):  1) In file included from ../inst/include/Rcpp.h(57), from Date.cpp(31): ../inst/include/Rcpp/Date.h(83): warning #858: type qualifier on return type is meaningless

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-09 Thread Dirk Eddelbuettel
On 9 June 2014 at 11:11, Matteo Fasiolo wrote: | Hi All, | |  I have put the package on CRAN, but I get errors on some platform. Saw that -- mvnfast looks quite interesting with OpenMP-based RNG! | | In particular, on  r-devel-linux-x86_64-fedora-clang, r-devel-osx-x86_64-clang | and r-release-

Re: [Rcpp-devel] C++11 in Windows R package

2014-06-09 Thread Matteo Fasiolo
Hi All, I have put the package on CRAN , but I get errors on some platform . In particular, on r-devel-linux-x86_64-fedora-clang, r-devel-osx-x86_64-clang and r-release-os