Re: [Rcpp-devel] Keep variables in C++ environment

2010-01-27 Thread Dirk Eddelbuettel
On 27 January 2010 at 17:35, Romain Francois wrote: | On 01/27/2010 05:29 PM, Mattias Nyström wrote: | Hi, | | I'm using the Rcpp package to do some operations in C++. For example reading large files and do some calculations. I call the C++ function several times, so I would like the C++

Re: [Rcpp-devel] RObject.asFoo

2010-02-06 Thread Dirk Eddelbuettel
On 6 February 2010 at 15:08, Romain Francois wrote: | On 02/06/2010 02:58 PM, Dirk Eddelbuettel wrote: | | | On 6 February 2010 at 14:28, Romain Francois wrote: | | Hello, | | | | Now with asFoo, we don't need anymore the Rcpp::asFoo() methods. I'd | | like to remove them from the api

Re: [Rcpp-devel] RObject.asFoo

2010-02-06 Thread Dirk Eddelbuettel
On 6 February 2010 at 15:26, Romain Francois wrote: | On 02/06/2010 03:22 PM, Dirk Eddelbuettel wrote: | | On 6 February 2010 at 15:08, Romain Francois wrote: | | On 02/06/2010 02:58 PM, Dirk Eddelbuettel wrote: | | | | | | On 6 February 2010 at 14:28, Romain Francois wrote: | | | Hello

Re: [Rcpp-devel] Handling NAs in RcppMatrix

2010-02-06 Thread Dirk Eddelbuettel
? Is there anything specific to RcppMatrix from what you cam see? | As far as the compilation error messages -- looks like they were | indeed byproducts of the CLINK_CPPFLAGS and didn't affect anything. Ok. Dirk | Thanks, | --Leo | | | On Sat, Feb 6, 2010 at 8:01 PM, Dirk Eddelbuettel e

Re: [Rcpp-devel] boost::asio

2010-02-13 Thread Dirk Eddelbuettel
On 13 February 2010 at 18:08, Romain Francois wrote: | Anyone familiar with boost asio here ? | http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio.html I have not used asio but using more of boost is always a good idea. Would add another (weak) build dependency though. | Now that new Rcpp

Re: [Rcpp-devel] boost::asio

2010-02-13 Thread Dirk Eddelbuettel
On 13 February 2010 at 19:28, Romain Francois wrote: | On 02/13/2010 07:21 PM, Dirk Eddelbuettel wrote: | On 13 February 2010 at 18:08, Romain Francois wrote: | | Anyone familiar with boost asio here ? | | http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio.html | | I have not used asio

Re: [Rcpp-devel] ColDatum constructors memory safety

2010-03-13 Thread Dirk Eddelbuettel
Hi Alistair, Thanks for sharing the analysis. On 12 March 2010 at 15:15, Alistair Gee wrote: | The ColDatum default constructor does not initialize any fields except | for level. But the ColDatum *copy* constructor expects the type | field to be properly initialized, b/c if type is

Re: [Rcpp-devel] Preferred idiom for obtaining a pointer in Rcpp

2010-03-15 Thread Dirk Eddelbuettel
On 15 March 2010 at 19:33, Douglas Bates wrote: | I have been using the begin method to obtain a pointer to the contents | of an Rcpp::Vector object. For example | | Rcpp::NumericVector foo(10); | double *ptr = foo.begin(); I use that form. And we have gotten fond of the begin() notion which

Re: [Rcpp-devel] Preferred idiom for obtaining a pointer in Rcpp

2010-03-15 Thread Dirk Eddelbuettel
On 15 March 2010 at 21:10, Dirk Eddelbuettel wrote: | The classes are meant to be somewhat opaque and you're really supposed to | poke in like that even when it works. A not went missing there... Dirk -- Registration is open for the 2nd International conference R / Finance 2010 See http

Re: [Rcpp-devel] Organization of C++ classes for glm families

2010-03-16 Thread Dirk Eddelbuettel
That's an interesting problem. AFAICT folks prefer iterators and transform() and its ilk because it allows you to swap vector() for, say, list() with minimal fuss. It is less clear that you pick up speed that way. Wouldn't the cost of log() dominate the looping, whether it's old school C style

Re: [Rcpp-devel] ColDatum constructors memory safety

2010-03-16 Thread Dirk Eddelbuettel
, 2010 at 12:03 PM, Dirk Eddelbuettel e...@debian.org wrote: | | Hi Alistair, | | Thanks for sharing the analysis. | | On 12 March 2010 at 15:15, Alistair Gee wrote: | | The ColDatum default constructor does not initialize any fields except | | for level. But the ColDatum *copy* constructor

Re: [Rcpp-devel] Only 64-bit version of RcppArmadillo gets installed

2010-03-19 Thread Dirk Eddelbuettel
Davor, Thanks for the bugreports. Looks like you found one in Armadillo 0.9.0... On 19 March 2010 at 14:53, Davor Cubranic wrote: | OS X Snow Leopard with R 2.10.1 | | I installed Rcpp, RcppArmadillo, and RcppExamples from SVN head a day or two ago, and noticed that Rcpp and RcppExamples are

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Dirk Eddelbuettel
On 22 March 2010 at 08:14, Douglas Bates wrote: | And when I run the code on OSX (gcc 4.2), I get : | |  *** caught segfault *** | address 0x0, cause 'memory not mapped' | | Traceback: |  1: .Call(file10d63af1, PACKAGE = f, l) |  2: fx(binomial()) | aborting ... | Segmentation fault |

Re: [Rcpp-devel] bug hunting

2010-03-23 Thread Dirk Eddelbuettel
On 23 March 2010 at 13:16, Romain Francois wrote: | Le 23/03/10 12:49, Dirk Eddelbuettel a écrit : | | FYI, following Doug's lead re '-pedantic', I made that permanent for me via | | e...@ron:~$ grep pedantic .R/* | .R/Makevars:CFLAGS=-g -O3 -Wall -pipe -pedantic | .R

Re: [Rcpp-devel] RcppArmadillo error

2010-04-01 Thread Dirk Eddelbuettel
On 1 April 2010 at 09:58, Dirk Eddelbuettel wrote: | On 1 April 2010 at 09:57, Romain Francois wrote: | | You need Rcpp 0.7.11 (where create was introduced) | | (And we mentioned that need for 0.7.11 several times) | | | It has been pushed to cran, but somehow does not appear yet. If you

Re: [Rcpp-devel] short, unsigned short, long, unsigned long, long double

2010-04-06 Thread Dirk Eddelbuettel
On 6 April 2010 at 14:27, Romain Francois wrote: | Perhaps I am not answering the question that you asked - that sort of | thing happens when answering email while still on the first cup of | coffee. More helpful might be the comments in the limits include file | for libstdc++ on

Re: [Rcpp-devel] Problem compling rinside_sample0 on OSX

2010-04-06 Thread Dirk Eddelbuettel
On 6 April 2010 at 08:58, Dan Kulp wrote: | Libraries from CRAN installed into .../Library/R/2.10/library/Rcpp and | .../LibraryR/2.10/library/RIniside We asked about the _version numbers_ which you still have not provided. Please do (inside R) library(help=Rcpp)

Re: [Rcpp-devel] Problem compling rinside_sample0 on OSX

2010-04-06 Thread Dirk Eddelbuettel
On 6 April 2010 at 09:47, Dan Kulp wrote: | Success! The snag was installing both packages from their source packages, | not the binary OSX ones. Fiddlesticks! I once knew that, but forgot, and it doesn't hit Romain on OS X as he builds from source anyway. | I appreciate your guys time, too

Re: [Rcpp-devel] Conflict between RInside and OpenCV

2010-04-23 Thread Dirk Eddelbuettel
On 23 April 2010 at 22:25, Xavi de Blas wrote: | Hello Dirk | | | No idea whatsoever. That seems very bizarre and implausible.  Do you have | anything in your ~/.Profile? | | Nothing special It is either that file, or an existing .RData you are loading by virtue of initializing R. I can

Re: [Rcpp-devel] RInside Problems.

2010-04-29 Thread Dirk Eddelbuettel
Please use the rcpp-devel mailing list for questions or bug reports. On 29 April 2010 at 10:48, jgbr...@ull.es wrote: | | Hello, | | I have a problem compiling RInside library and its examples. The error | obtained while compiling the library is showed now: | |

Re: [Rcpp-devel] RInside Problems.

2010-04-29 Thread Dirk Eddelbuettel
On 29 April 2010 at 06:31, Dirk Eddelbuettel wrote: | | Please use the rcpp-devel mailing list for questions or bug reports. | | On 29 April 2010 at 10:48, jgbr...@ull.es wrote: | | | | Hello, | | | | I have a problem compiling RInside library and its examples. The error | | obtained while

Re: [Rcpp-devel] Rcpp static variables

2010-04-30 Thread Dirk Eddelbuettel
Hi Guiseppe, Thanks for reposting here! On 30 April 2010 at 16:07, Giuseppe Milicia wrote: | Guys, | | I posted this on R-help and Dirk kindly pointed out that this list is a much better place for this sort of questions... | | I was wondering whether anyone experimented with Rcpp and static

Re: [Rcpp-devel] Rcpp Multithreading

2010-04-30 Thread Dirk Eddelbuettel
Hi Jaiganesh, Thanks for reposting here. On 30 April 2010 at 16:50, Jaiganesh Balasubramanian wrote: | Hi Folks, | | I am creating a multi-threaded C++ application that initializes RInside in one | of the child thread. | | I would also like to access support interfaces like Rcpp::Environment

Re: [Rcpp-devel] Rcpp Multithreading

2010-04-30 Thread Dirk Eddelbuettel
Hi again, On 30 April 2010 at 18:21, Jaiganesh Balasubramanian wrote: | Well, we already do that when RInside sets itself up: | |    #ifdef CSTACK_DEFNS |    R_CStackLimit = (uintptr_t)-1;      // Don't do any stack checking, | see R Exts, '8.1.5 Threading issues' |    

Re: [Rcpp-devel] Rf_error and Rcpp

2010-05-04 Thread Dirk Eddelbuettel
On 4 May 2010 at 18:02, Romain Francois wrote: | Le 04/05/10 15:18, Douglas Bates a écrit : | As I understand it, we are still at risk of code in the R API that we | call in turn calling Rf_error, right? That will have the same effect | of leaving the C++ exception stack in an inconsistent

Re: [Rcpp-devel] Compiler error I can't understand

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 11:31, Romain Francois wrote: | Hi, | | Without seeing the actual code, it looks like a candidate for | const_cast. See for example: | http://www.cplusplus.com/doc/tutorial/typecasting/ Yes, I briefly hinted the same last eve off-list from my phone. As the aforementioned

Re: [Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 09:21, Douglas Bates wrote: | The enclosed section of code using Rcpp::Dimension fails to compile | because of the const qualifiers for the simple::nrow and simple::ncol | method functions. If you omit those const qualifiers then it will | compile and behave as desired. Of

Re: [Rcpp-devel] Rcpp::Dimension initialized from an SEXP

2010-05-08 Thread Dirk Eddelbuettel
On 8 May 2010 at 11:32, Douglas Bates wrote: | On Sat, May 8, 2010 at 10:31 AM, Dirk Eddelbuettel e...@debian.org wrote: | | On 8 May 2010 at 09:21, Douglas Bates wrote: | | The enclosed section of code using Rcpp::Dimension fails to compile | | because of the const qualifiers for the simple

Re: [Rcpp-devel] Rcpp

2010-05-10 Thread Dirk Eddelbuettel
Hi Jean-Eudes, Thanks for your interest in Rcpp. On 10 May 2010 at 14:09, Jean-Eudes Dazard wrote: | Here is my beginner?s question: | | We want to interface an existing C++ subroutine to R. The subroutine can be | wrapped up in a C++ program, compiled with standard gcc, and run e.g. under

Re: [Rcpp-devel] Using Armadillo objects as arguments in calls to R

2010-05-11 Thread Dirk Eddelbuettel
On 11 May 2010 at 16:41, Davor Cubranic wrote: | No, sadly. I still get a segfault if any of the variables 'x', 'y', or 'weights' below are 'wrap'ped. Now that we've come this far -- do you want to try 0.8.0 will should hit CRAN tomorrow? Early bird versions are at

Re: [Rcpp-devel] Rcpp

2010-05-17 Thread Dirk Eddelbuettel
Jean-Eudes, Joseph, Thanks for your continued interest in Rcpp. On 17 May 2010 at 10:51, Jean-Eudes Dazard wrote: | Romain, | Thanks! | We have started modifying our code in accord with your suggestions. | There is still something which confuses us: | - Which header files relevant to Rcpp

Re: [Rcpp-devel] Rcpp modules

2010-05-20 Thread Dirk Eddelbuettel
On 19 May 2010 at 15:07, Romain Francois wrote: | One thing perhaps I'd like opinions about is the use if the name | function in : | | RCPP_MODULE(yada){ | using namespace Rcpp ; | function( hello , hello ) ; | } | | Boost.Python uses def but this is too pythonic for me. OTOH,

Re: [Rcpp-devel] Rcpp modules

2010-05-20 Thread Dirk Eddelbuettel
On 20 May 2010 at 09:49, Romain Francois wrote: | Le 20/05/10 09:33, Dirk Eddelbuettel a écrit : | | On 19 May 2010 at 15:07, Romain Francois wrote: | | One thing perhaps I'd like opinions about is the use if the name | | function in : | | | | RCPP_MODULE(yada){ | | using namespace Rcpp

Re: [Rcpp-devel] bizarre behavior of RcppMatrix

2010-05-24 Thread Dirk Eddelbuettel
Hi Erica, Thanks for your interest in Rcpp, and for posting on the list! On 24 May 2010 at 20:58, Yi-Hsin Erica Tsai wrote: | Hi, | | I've just started using Rcpp with the hopes of speeding up some R loops | through replacement with C++ code. I've been struggling with | understanding the

Re: [Rcpp-devel] basic usage help

2010-05-27 Thread Dirk Eddelbuettel
On 27 May 2010 at 08:05, Vinh Nguyen wrote: | On Wed, May 26, 2010 at 11:33 PM, Romain Francois | rom...@r-enthusiasts.com wrote: | If you don't want to use what R and Rcpp provides for you, you can emulate | this by using this Makevars : | | PKG_LIBS = $(shell $(R_HOME)/bin/Rscript -e

Re: [Rcpp-devel] basic usage help

2010-05-27 Thread Dirk Eddelbuettel
On 27 May 2010 at 08:19, Vinh Nguyen wrote: | My next question is: if I have both .c and .cpp files in ./src/ is | made from RcppArmadillo's skeleton function is OK right? I never | understood the stuff about libraries and headers so I never know | what's going on under the hood. I just tried

Re: [Rcpp-devel] Using Rcpp in MS VC++

2010-05-27 Thread Dirk Eddelbuettel
On 27 May 2010 at 22:37, R_help Help wrote: | Hi - I tried to start using Rcpp in MS VC++. As expected, with my | experience I can't get it to work. The compiled Rcpp.dll was compiled | with MinGW and the mangled name convention seem to be totally | different from MS VC++ convention. I also tried

Re: [Rcpp-devel] issues with discussion board + help

2010-06-06 Thread Dirk Eddelbuettel
: | | Romain Francois rom...@r-enthusiasts.com | Dirk Eddelbuettel e...@debian.org | Douglas Bates ba...@stat.wisc.edu | Romain, Dirk and Doug rcpparmadillo-auth...@r-enthusiasts.com | | | With regards, | Conrad | | | On 7 June 2010 11:37, Vinh Nguyen vinhdi...@gmail.com wrote: | Hi Conrad, | | I mean

Re: [Rcpp-devel] Checking a condition like any(x lowerBd)

2010-06-10 Thread Dirk Eddelbuettel
On 10 June 2010 at 10:47, Douglas Bates wrote: | I thought I had had enough coffee this morning not to make really dumb | mistakes but perhaps not. | | I want to check that a particular NumericVector is within a feasible | region defined by lower and upper bounds on each element. For the |

Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Dirk Eddelbuettel
Vinh, Please have a look at RcppArmadillo 0.2.2 which should helpfully be easier to use in the cases you tried, ie outside of a package. A quick example is on my blog at http://dirk.eddelbuettel.com/blog/ -- Regards, Dirk ___ Rcpp-devel mailing

Re: [Rcpp-devel] RcppArmadillo questions

2010-06-10 Thread Dirk Eddelbuettel
On 10 June 2010 at 10:35, Vinh Nguyen wrote: | Thanks Dirk. I've been using the package skeleton method, and added | PKG_CXXFLAGS = $(shell $(R_HOME)/bin/Rscript -e Rcpp:::CxxFlags() ) | $(shell Rscript -e cat( '-I', | system.file('include', package = 'RcppArmadillo'), sep = '' ) ) | | into

Re: [Rcpp-devel] Question about RInside execution

2010-06-14 Thread Dirk Eddelbuettel
Hi Geunseop, Thanks for interest in RInside, but *please* use the rcpp-devel list which I will now CC. You need to subscribe there to post, the interface is via R-Forge. On 14 June 2010 at 18:32, GEUN SEOP LEE wrote: | Dear Dr. Eddelbuettel, | | My name is Geunseop Lee and Ph.D student at

Re: [Rcpp-devel] About calling C/C++ functions in R

2010-06-16 Thread Dirk Eddelbuettel
On 16 June 2010 at 10:56, Romain Francois wrote: | I totally second Dirk in the advice about reading the appropriate | documents. I would add the book from John Chambers Programming with | Data as it has very clear chapters about R and C(++). Did you mean 'Software for Data Analysis' here? --

Re: [Rcpp-devel] Work-around for Stangle failure on Rcpp-modules.Rnw?

2010-06-28 Thread Dirk Eddelbuettel
On 28 June 2010 at 09:19, Douglas Bates wrote: | I have been unable to install Rcpp SVN revision 1758. It fails to | build the package indices with error message | | ** building package indices ... | Error : running Stangle on vignette | '/home/bates/sloc/Rcpp/inst/doc/Rcpp-modules.Rnw' failed

Re: [Rcpp-devel] Work-around for Stangle failure on Rcpp-modules.Rnw?

2010-06-28 Thread Dirk Eddelbuettel
On 28 June 2010 at 11:20, Dirk Eddelbuettel wrote: | | On 28 June 2010 at 11:00, Douglas Bates wrote: | | And I'm not sure why but building the PDF files for the vignettes | | bypasses the problem with Stangle so not I am successful at installing | | the latest Rcpp. | | It is having

Re: [Rcpp-devel] Exposed C++-Class used within another exposed C++-Class

2010-06-28 Thread Dirk Eddelbuettel
Hi Paul, Thanks for your interest in Rcpp, and for posting here! On 28 June 2010 at 16:48, Paul Theodor Pyl wrote: | Hi, | | I have a C++Class 'DSV' that I have successfully made accessible from R | with the following piece of code: | | RCPP_MODULE(blubb){ | | using namespace Rcpp; | |

Re: [Rcpp-devel] Assignment and extraction from a Vector in a templated function

2010-06-30 Thread Dirk Eddelbuettel
Just FYI Rcpp 0.8.3 itself didn't even build on OS X or Solaris according to 'Check Results' page on CRAN -- so we have some work to do there. Windows did build so that would put the blame back onto your code. Unfortunately, debugging (templated) C++ that doesn't work is not the most

Re: [Rcpp-devel] RInside

2010-07-12 Thread Dirk Eddelbuettel
David, On 12 July 2010 at 16:38, Dirk Eddelbuettel wrote: | | Hi David, | | Thanks for hanging in there -- I think you just found a real bug on our side! | | On 12 July 2010 at 17:21, David Rosengarten wrote: | | The result of sudo apt-get install r-base-core is: | | | | Reading package

Re: [Rcpp-devel] Armadillo version in RcppArmadillo

2010-07-15 Thread Dirk Eddelbuettel
On 15 July 2010 at 11:44, Davor Cubranic wrote: | On 2010-07-15, at 11:37 AM, Davor Cubranic wrote: | | I'm now going to try the most recent release of Armadillo (0.9.52) to see if the error is still there. | | Yep, still there. Thanks for checking. Updating to Armadillo 0.9.52 is on the

Re: [Rcpp-devel] RInside examples built by Rtools in Windows crashed

2010-08-12 Thread Dirk Eddelbuettel
and I had meant to sort this out prior to the useR conference, but haven't. If someone with Windows skills is willing and able to debug this, we would welcome patches. Otherwise, as I recall, Rcpp 0.7.1 and RInside 0.2.1 formed a working combination on Windows, Sorry, Dirk -- Dirk Eddelbuettel

Re: [Rcpp-devel] Multiplication of ComplexVector?

2010-08-17 Thread Dirk Eddelbuettel
On 17 August 2010 at 09:06, Romain Francois wrote: | Le 17/08/10 02:43, Dirk Eddelbuettel a écrit : | Well, NumericVector et al aren't really made for all possible math ops done | on vectors, real or complex. They are first and foremost storage types. | | Maybe that was true two months ago

[Rcpp-devel] On mailing list defaults, and suggested patch submission

2010-08-19 Thread Dirk Eddelbuettel
as Rcpp authors tend not to work in branches. We also tend not to set, but commit logs clearly identify which revisions correspond to the actual tar ball releases. Thanks, Dirk [1] http://en.wikipedia.org/wiki/Patch_(Unix) -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] r-forge error: undefined symbol: zgetri_

2010-08-20 Thread Dirk Eddelbuettel
* DONE (cda) e...@max:/tmp/cda$ r -lcda -e'cat(Hello cda world\n)' Hello cda world e...@max:/tmp/cda$ FWIW on Debian and Ubuntu R uses external lapack and blas libraries. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp

Re: [Rcpp-devel] Planning to remove the MSVC patch

2010-09-02 Thread Dirk Eddelbuettel
On 30 August 2010 at 07:25, Dirk Eddelbuettel wrote: | Having discussed this some more with Romain who has no strong views on the | matter, I am inclined to the remove the patch that added the ability for | compilation with MSVC as I cannnot come up with answers to these questions: | | i

Re: [Rcpp-devel] Named vectors

2010-09-09 Thread Dirk Eddelbuettel
utility function to convert. b) You could try as.list() as well. Hth, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org

Re: [Rcpp-devel] Internal Compiler Error building Rcpp with gcc 4.0 at line ../inst/include/Rcpp/internal/export.h:56

2010-09-10 Thread Dirk Eddelbuettel
/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Internal Compiler Error building Rcpp with gcc 4.0 at line ../inst/include/Rcpp/internal/export.h:56

2010-09-11 Thread Dirk Eddelbuettel
' boxen that Simon uses for CRAN builds we should no issues whatsoever on recent OS X releases. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r

Re: [Rcpp-devel] Visual Studio compatible Rcpp

2010-09-14 Thread Dirk Eddelbuettel
, oct 5th | | | | ___ | Rcpp-devel mailing list | Rcpp-devel@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] No matching function for calls to Rmath.h

2010-09-15 Thread Dirk Eddelbuettel
so you don't _exactly_ get a replacement to your code. The NEWS file etc would have lead you there, but then we tend to change so many things that it is easy to overlook items :) Hth, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Broken (undone) Rmath functions

2010-09-17 Thread Dirk Eddelbuettel
| Rcpp-devel@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org

Re: [Rcpp-devel] Rcpp bug with rgamma

2010-10-03 Thread Dirk Eddelbuettel
-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp bug with rgamma

2010-10-03 Thread Dirk Eddelbuettel
be fine. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp bug with rgamma

2010-10-03 Thread Dirk Eddelbuettel
always end up with the same draws. I amended the 'Rcpp-sugar' vignette as well as the header files to point users to this Section 6.3 to make sure GetRNGstate() and PutRNGstate() are used. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Rcpp and roxygen

2010-10-04 Thread Dirk Eddelbuettel
-- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Dirk Eddelbuettel
or or runit.Module.R. I think we also have blog posts and / or vignette examples that use it. Hth, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https

Re: [Rcpp-devel] inline with classes

2010-10-05 Thread Dirk Eddelbuettel
(2.0, 3L)) e...@max:~$ chmod 0755 /tmp/whit.r e...@max:~$ /tmp/whit.r $x [1] 4 $i [1] 9 e...@max:~$ All good? Send my condolences to the family of WinBUGS. Dirk | -Whit | | | 2010/10/5 Dirk Eddelbuettel e...@debian.org: | | Hi Whit, | | On 5 October 2010 at 12:25, Whit Armstrong

Re: [Rcpp-devel] Rcpp-devel Digest, Vol 12, Issue 8

2010-10-08 Thread Dirk Eddelbuettel
test case. I use the same approach a lot and have not had issues. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin

Re: [Rcpp-devel] Help Rcpp under ubuntu with QT4

2010-10-11 Thread Dirk Eddelbuettel
-- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Help Rcpp under ubuntu with QT4

2010-10-11 Thread Dirk Eddelbuettel
On 11 October 2010 at 12:22, Dirk Eddelbuettel wrote: | Please do not send html mail. | | On 11 October 2010 at 17:53, Paulo Trigueiros wrote: | | I need some help on compiling the examples that come eith Rcpp under | | ubuntu with QT4. Is it possible?br | | I always get the message

Re: [Rcpp-devel] Help Rcpp under ubuntu with QT4

2010-10-11 Thread Dirk Eddelbuettel
this as it involves local admin work. Lastly, you can use LD_LIBRARY_PATH. So let us know what you tried and what failed and we take it from there. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel

Re: [Rcpp-devel] Call R functions from C++ programs

2010-10-12 Thread Dirk Eddelbuettel
examples in the RInsides sources? See the directory inst/examples/standard/ (as well we inst/examples/mpi/ but that is for parallel computing). | Are there any tutorials on this matter? Nothing dedicated though I cover some of the examples in my 'HPC with R' tutorials. Dirk -- Dirk Eddelbuettel | e

Re: [Rcpp-devel] Call R functions from C++ programs

2010-10-12 Thread Dirk Eddelbuettel
Paulo, As I asked before: Please do NOT send html mail. On 12 October 2010 at 16:38, Paulo Trigueiros wrote: | Where can I find your tutorial?br http://lmgtfy.com/?q=Dirk+Eddelbuettel+HPC+Tutorial Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

[Rcpp-devel] Rcpp 0.8.7 and RcppArmadillo 0.2.8

2010-10-16 Thread Dirk Eddelbuettel
post too in due course, Questions, comments, ... as always welcome. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r

Re: [Rcpp-devel] Inconsistent returns

2010-10-19 Thread Dirk Eddelbuettel
wrap for the Rcpp::List object. What I would do now is to print all pairs of dimensions to screen before you return so 'see what it was in C++'. Rcpp shouldn't be altering anything; I suspect you may just have slipped an object creation up here or there. Dirk -- Dirk Eddelbuettel | e

Re: [Rcpp-devel] Couple of minor fixes to Rcpp

2010-10-20 Thread Dirk Eddelbuettel
-- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Module with out default constructor.

2010-10-27 Thread Dirk Eddelbuettel
I'd try that. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Inline (ghost from the devel still walks?)

2010-10-27 Thread Dirk Eddelbuettel
to educate me on which one ? | | ___ | Rcpp-devel mailing list | Rcpp-devel@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Errors when just including Rcpp.h

2010-10-29 Thread Dirk Eddelbuettel
have not yet mixed Rcpp and nvcc myself. Worst case you may have to reduce things to simpler interfaces. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https

Re: [Rcpp-devel] Accessing T of RcppVectorT

2010-10-30 Thread Dirk Eddelbuettel
possible. so the line you were referring to actually came from simple debugging output, and was authored by Sebastian to whom I replied with a fix. So in short: if you must print, use Rprintf, or REprintf for stderr, as detailed in section 6.5 Printing of Writing R Extensions. Regards, Dirk -- Dirk

Re: [Rcpp-devel] Rcpp and reference classes in R-2.12.0 and later

2010-11-01 Thread Dirk Eddelbuettel
=UZkaZhsOfT4 to enjoy the video. It came up here as well a few times so there may be older posts of interest. Hth, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org

Re: [Rcpp-devel] A question about Rcpp

2010-11-07 Thread Dirk Eddelbuettel
| | | __ | Chunhua Wu | Ph.D. Candidate in Marketing | Olin Business School, | Washington University in St. Louis | chunhu...@wustl.edu | -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp

Re: [Rcpp-devel] Dependence on GNU make because of $(shell)

2010-11-16 Thread Dirk Eddelbuettel
of a specific package, as more a general Rcpp problem, I'd like to discuss this topic here.. Yup. Hope the mail was somewhat helpful. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel

[Rcpp-devel] Don't believe a word he's saying (Was: Dependence on GNU make because of $(shell))

2010-11-16 Thread Dirk Eddelbuettel
wrote: | On Tue, Nov 16, 2010 at 12:36 PM, Dirk Eddelbuettel e...@debian.org wrote: | It's been about two years since I started to maintain and extend the Rcpp | package which its previous maintainer had left dead and rotting in the | digital archives for two years already at that point

Re: [Rcpp-devel] Dependence on GNU make because of $(shell)

2010-11-17 Thread Dirk Eddelbuettel
years_ with a short-lived update. And I suspect that without the ongoing Rcpp work you would never have done that brief camoe re-appearance of RcppTemplate. Anyway, dead and rotting it was and yes, please do provide proof for your allegations. Dirk -- Dirk Eddelbuettel | e...@debian.org | http

Re: [Rcpp-devel] Question concerning use of Raster in C vi Rcpp plugin and inline

2010-11-17 Thread Dirk Eddelbuettel
haven't? ;-) You and I are co-authors of the earthmovdist package on R-Forge which is just that: a small package with Rcpp around a single file you once for help with in wrapping to C++. Feel free to take it as a stanza. https://r-forge.r-project.org/projects/earthmovdist/ Dirk -- Dirk

Re: [Rcpp-devel] Dependence on GNU make because of $(shell)

2010-11-17 Thread Dirk Eddelbuettel
magic and so on.) Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp::wrap segmentation fault

2010-11-21 Thread Dirk Eddelbuettel
/listinfo/rcpp-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp::wrap segmentation fault

2010-11-21 Thread Dirk Eddelbuettel
Marc, On 21 November 2010 at 06:57, Dirk Eddelbuettel wrote: | Basically, R itself is the main(). You never see that code. You simply write | functions all confirming to Typo: conforming is what I meant. | SEXP myfunction(SEXP a, SEXP b, ...) | | which take one or more SEXP objects

[Rcpp-devel] RcppArmadillo 0.2.10

2010-11-25 Thread Dirk Eddelbuettel
and adj.r.squared Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Rcpp 0.8.9

2010-11-28 Thread Dirk Eddelbuettel
on the default platforms; this has been applied to internal test packages as well as CRAN/BioC packages using Rcpp A blog post just went out, you'll see in soon at Planet R, Planet Debian, R Bloggers as well as at http://dirk.eddelbuettel.com/blog/ Cheers, Dirk -- Dirk Eddelbuettel | e

[Rcpp-devel] Rcpp compiler support and tests for suitable compilers

2010-11-30 Thread Dirk Eddelbuettel
an error pragma if no matching compiler is detected. If you plan on working with icc, please email us --- gcc, suncc and clang should be taken care of. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel

Re: [Rcpp-devel] idiom for creating an informative message for an exception

2010-12-02 Thread Dirk Eddelbuettel
( message ) ; | | ', plugin = Rcpp ) | | | you could for example use sprintf in the body of the constructor of your | exception class. The problem is very similar to what logging classes do. Maybe time to revisit our old and simple macros and do something better? Dirk -- Dirk Eddelbuettel

Re: [Rcpp-devel] [Rd] Terminology clarification (Re: GPL and R Community Policies (Rcpp)

2010-12-02 Thread Dirk Eddelbuettel
://dirk.eddelbuettel.com/code/rcpp.changelog.html) clearly shows that by November 2009 we were nine releases into it. There are a full 210 lines of changes including 2009-11-18 Dirk Eddelbuettel e...@debian.org * DESCRIPTION: Add Dominick back into Authors per his new request reversing

Re: [Rcpp-devel] Extending Rcpp/module/Module_generated_class_constructor.h

2010-12-03 Thread Dirk Eddelbuettel
the weekend. If you feel like it, look for the unit tests and add one for the seventh argument as icing on the cake. Thanks for the contribution and the quick turnaround! Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Fwd: Extending Rcpp/module/Module_generated_class_constructor.h

2010-12-03 Thread Dirk Eddelbuettel
by not showing up as a compilation | error. | Anyway, this is the corrected patch. I still get a seg fault in 'R CMD check' for current SVN plus your two patches. Please do run 'R CMD check'. Thanks, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Fwd: Extending Rcpp/module/Module_generated_class_constructor.h

2010-12-03 Thread Dirk Eddelbuettel
Tama, BTW r2697 now has both your patches so feel free to work from those. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r

Re: [Rcpp-devel] Fwd: Extending Rcpp/module/Module_generated_class_constructor.h

2010-12-03 Thread Dirk Eddelbuettel
Tama, On 3 December 2010 at 15:16, Dirk Eddelbuettel wrote: | I still get a seg fault in 'R CMD check' for current SVN plus your two | patches. Please do run 'R CMD check'. Sorry -- that was a combination of my being one checkout behind on the inline package and what looks like an actual typo

Re: [Rcpp-devel] Fwd: Extending Rcpp/module/Module_generated_class_constructor.h

2010-12-03 Thread Dirk Eddelbuettel
again -- but as I found out the hard way you also need rev41 of inline from its SVN on R-Forge. But with that and rev2699 of Rcpp, you should be good and see that your patch applied cleanly :) Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Help with SubMatrix test case

2010-12-03 Thread Dirk Eddelbuettel
look correct to me: i) assign 3, 4, 5 ii) copy row 0 as 1 iii) copy col 3 to 4 but I am also a little puzzled by the last submatrix. I'm sure Romain will weigh in in a few hours. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rcpp-devel] Help with SubMatrix test case

2010-12-03 Thread Dirk Eddelbuettel
On 3 December 2010 at 21:56, Dirk Eddelbuettel wrote: | | On 3 December 2010 at 19:45, Christian Gunning wrote: | | In this test case, I expected yy to be a proper subset of xx. I | | confess that I don't understand the results at all, but I'm assuming | | that the Row/Column exchange

  1   2   3   4   5   6   7   8   9   10   >