Re: [Rcpp-devel] Package compilation error after a Mac update (related to the use of module and .constructor()

2019-05-06 Thread Robin GIRARD
re T t ; 1 error generated. make: *** [test.o] Error 1 Error in Rcpp::sourceCpp("src/test.cpp") : Error 1 occurred building shared library. > Le 3 mai 2019 à 08:41, Robin GIRARD a écrit > : > > I found a way to solve my RcppArmadillo problem here >

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Robin GIRARD
Robin > Le 3 mai 2019 à 08:32, Robin GIRARD a écrit > : > > Dear Simon, > > **regarding RcppArmadillo build from source pb** the config.log is attached > and points the following error while checking something about cross > compilation. > In file included from co

Re: [Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Robin GIRARD
ig.log for details.Cheers,SimonOn May 2, 2019, at 1:04 PM, Robin GIRARD <robin.gir...@mines-paristech.fr> wrote:Dear all, avec a Mac update today I obtained the following error while compiling a package of mine using Rcpp : /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp

[Rcpp-devel] Package compilation error after a Mac update

2019-05-02 Thread Robin GIRARD
Dear all, avec a Mac update today I obtained the following error while compiling a package of mine using Rcpp : /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include/Rcpp/internal/Exporter.h:31:30: error: reference member 't' binds to a temporary object whose lifetime would

[Rcpp-devel] Conflict of std::asin and std::tr1::asin while using RcppArmadillo

2016-06-22 Thread Robin Girard
rgy Systems Renewable Energies & Smartgrids (ERSEI) 1 Rue Claude Daunesse - CS 10207 - F-06904 Sophia Antipolis Cedex Tel: +33.4.93.67.89.64 (~99), Fax: +33.4.93.95.75.35 e-mail : robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statove

Re: [Rcpp-devel] Rational number and the BH package

2014-07-10 Thread Robin Girard
Thanks a lot, sorry for my question, it was indeed here in front of me ... R. - Mail original - De: "Dirk Eddelbuettel" À: "Dirk Eddelbuettel" Cc: "Robin Girard" , "rcpp-devel" Envoyé: Jeudi 10 Juillet 2014 19:35:52 Objet: Re: [Rcpp-devel] Ra

[Rcpp-devel] Rational number and the BH package

2014-07-10 Thread Robin Girard
sers/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www.linkedin.com/profile/view?id=14907272&trk=tab_pro Le lien vaut mieux que le bien. CONFIDENTIALITY : This e-mail and any att

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-15 Thread Robin Girard
I'll try to contribute to the gallery.rcpp.org, after next week. R. - Mail original - De: "Dirk Eddelbuettel" À: "Anwar Ludin" Cc: "Robin Girard" , "Dirk Eddelbuettel" , rcpp-devel@lists.r-forge.r-project.org Envoyé: Mardi 14 Mai 201

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: "Dirk Eddelbuettel" , "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org Envoyé: Lundi 13 Mai 2013 21:38:34 Objet: Re: [Rcpp-devel] using Rcpp modules to expose class On 13 May 20

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
http://romainfrancois.blog.free.fr/index.php?post/2012/10/25/Rcpp-modules-more-flexible sorry about that R. - Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: "Anwar Ludin" , rcpp-devel@lists.r-forge.r-project.org, "Dirk Eddelbuettel&q

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-13 Thread Robin Girard
As suggested in the example of Romain's Blog here http://romainfrancois.blog.free.fr/ you need to define the class before "exposing" it and then implement it (I think it is also important that using namespace Rcpp comes after the exposed stuff). class Foo ; RCPP_EXPOSED_CLASS(Foo) using name

Re: [Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows)

2013-04-20 Thread Robin Girard
s suggested by John and Hadley. But there are things I will do later (e.g. I don't have the last R version...) properly hopefully ! Best Robin - Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: "Dirk Eddelbuettel" , "Hadley Wickham&

Re: [Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows)

2013-04-17 Thread Robin Girard
(x,CreateOutputFile(x))} lapply(filenames, directknit) where knit_sh.R is a copy of knit.sh without the end (only the R functions) this solved my problem (and I agree this wasn't a clean way to solve it) thanks all and sorry about my mess with windows :) and my bad way to handle PATH ...

Re: [Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows)

2013-04-17 Thread Robin Girard
e still is quite good héhé. But with StatET-Eclipse I manage to do code correction/completion but not to compile my Rcpp package might it be the same problem ? that RStudio has some extra power it does not share :) ? - Mail original - De: "Hadley Wickham" À: "Robin Girard

Re: [Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows)

2013-04-17 Thread Robin Girard
chose unfortunately :) - Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Mercredi 17 Avril 2013 17:13:54 Objet: Re: [Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows) On 17 A

[Rcpp-devel] linking fail when building examples of my local copy of Rcpp gallery (windows)

2013-04-17 Thread Robin Girard
6904 Sophia Antipolis Cedex Tel: +33.4.93.67.89.64 (~99), Fax: +33.4.93.95.75.35 e-mail : robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : htt

Re: [Rcpp-devel] module with a template class

2013-04-07 Thread Robin Girard
y do I construct "constructing firstClass" here ? of class 'dynamicOf_firstClass'? I'll dig further into that but if someone can explain me what's happening ... R. - Mail original - De: "Robin Girard" À: rcpp-devel@lists.r-forge.r-project.org En

[Rcpp-devel] module with a template class

2013-04-06 Thread Robin Girard
.35 e-mail : robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/

Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-04 Thread Robin Girard
but when I do res=new("Rcpp_vector_Of_father",1:10) res[[1]]$WhoAmI() res[[0]]$WhoAmI() rm(res) gc() that crashes with gc() R. - Mail original - De: "Robin Girard" À: "Romain Francois" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Jeudi 4 Avril

Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-04 Thread Robin Girard
that works indeed :) R. - Mail original - De: "Romain Francois" À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Jeudi 4 Avril 2013 17:58:42 Objet: Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing Le 0

Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-04 Thread Robin Girard
in R... but loops in R are like uses of Calloc with Rcpp no ? they are possible but if we can avoid them ... - Mail original - De: "Romain Francois" À: rcpp-devel@lists.r-forge.r-project.org Cc: "Robin Girard" Envoyé: Mercredi 3 Avril 2013 22:12:48 Objet: Re

Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-03 Thread Robin Girard
oups wrong, suppress my last message. R. - Mail original - De: "Robin Girard" À: rcpp-devel@lists.r-forge.r-project.org Envoyé: Mercredi 3 Avril 2013 20:07:14 Objet: Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing additional remark : i

Re: [Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-03 Thread Robin Girard
additional remark : if operator SEXP() ; is added to class father, children1_t, and children2_t the solution with XPtr compiles but gives the same result as the solution with shared_ptr (i.e. slicing) R. - Mail original - De: "Robin Girard" À: rcpp-devel@lists.r-forge.r-p

[Rcpp-devel] Module with vector of a class with inheritance, how to avoid slicing

2013-04-03 Thread Robin Girard
Procédés, Energies Renouvelables et Systèmes Energétiques (PERSEE) Center for Processes, Renewables Energies and Energy Systems Renewable Energies & Smartgrids (ERSEI) 1 Rue Claude Daunesse - CS 10207 - F-06904 Sophia Antipolis Cedex Tel

Re: [Rcpp-devel] Datetime substraction bug ?

2013-04-02 Thread Robin Girard
It was used in my c++ code :) that's why I had problems héhé. R. - Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" , "Patrick Burns" , "Romain Francois" , rcpp-devel@lists.r-forge.r-project.org Envoyé: Mardi 2 Avril 2

Re: [Rcpp-devel] Datetime substraction bug ?

2013-04-02 Thread Robin Girard
3)) [1] 2 Pat On 02/04/2013 15:33, Romain Francois wrote: > Le 30/03/13 00:44, Dirk Eddelbuettel a écrit : >> >> On 29 March 2013 at 23:37, Robin Girard wrote: >> | Hi List >> | >> | why is it that we have in the Datetime definition >> | (here >> http://dirk.

[Rcpp-devel] Using module with std::vector when Mytype has children with inheritence

2013-04-02 Thread Robin Girard
l: +33.4.93.67.89.64 (~99), Fax: +33.4.93.95.75.35 e-mail : robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ lin

[Rcpp-devel] module with vector when Mytype has children with inheritence

2013-04-02 Thread Robin Girard
robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www

Re: [Rcpp-devel] Datetime substraction bug ?

2013-03-31 Thread Robin Girard
; is only a missinterpretation of something somewhere ? :) lots of .getFractionalTimestamp() everywhere for me ... R. - Mail original - De: "stat quant" À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Dimanche 31 Mars 2013 11:32:08 Objet: Re: [Rcpp

Re: [Rcpp-devel] Datetime substraction bug ?

2013-03-29 Thread Robin Girard
Thanks you're right I already wrote it myself with getFractional... and indeed that's not really what we should call a "bug" but it took me a while to understand that if date1-date2>0 then date1 À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Env

[Rcpp-devel] Datetime substraction bug ?

2013-03-29 Thread Robin Girard
age perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www.linkedin.com/profile/view?id=14907272&trk=tab_p

[Rcpp-devel] using Roxygen2 in a methods exported via a module

2013-03-29 Thread Robin Girard
/Annuaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www.linkedin.com/profile/view?id=14907272&trk=tab_pro Le lien vaut

[Rcpp-devel] using Roxygen2 in a methods exported via a module

2013-03-28 Thread Robin Girard
statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www.linkedin.com/profile/view?id=14907272&trk=tab_pro Le lien vaut mieux que le bien.

Re: [Rcpp-devel] package with module not compiling on Mac

2013-01-31 Thread Robin Girard
& Swap(double y) ; cplfunction & Etoile() ; I think the problem is that they return a reference. Looking at their code, it looks like they only ever return *this. Why are you doing this ? I'd suggest you return void. Romain Le 29/01/13 16:04, Robin Girard a écrit : > > The Mac vers

[Rcpp-devel] package with module not compiling on Mac

2013-01-29 Thread Robin Girard
uaire/&?id=8828 statoverflow : http://stats.stackexchange.com/users/223/robin-girard web page centre PERSEE : http://www.cep.mines-paristech.fr/ linkedin : http://www.linkedin.com/profile/view?id=14907272&trk=tab_pro Le lien vaut mieux que le bien. ___

Re: [Rcpp-devel] Fwd: CRAN package ConConPiWiFun

2013-01-15 Thread Robin Girard
NOTE ? All the best Robin - Mail original - De: "Dirk Eddelbuettel" À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Mardi 15 Janvier 2013 17:53:52 Objet: Re: [Rcpp-devel] Fwd: CRAN package ConConPiWiFun On 15 January 2013 at 17:47, Robin Girard w

[Rcpp-devel] Fwd: CRAN package ConConPiWiFun

2013-01-15 Thread Robin Girard
ge with no example to pass checks ? Robin - Mail transféré - De: "Prof Brian Ripley" À: c...@r-project.org Cc: "Uwe Ligges" , "Robin Girard" Envoyé: Mardi 15 Janvier 2013 17:05:26 Objet: Re: CRAN package ConConPiWiFun On 15/01/2013 14:38, Uwe Ligges w

Re: [Rcpp-devel] Two problem trying to install a package with modules (e.g. testmod) on windows and on CRAN

2013-01-12 Thread Robin Girard
uot;Dirk Eddelbuettel" À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Vendredi 11 Janvier 2013 21:33:00 Objet: Re: [Rcpp-devel] Two problem trying to install a package with modules (e.g. testmod) on windows and on CRAN Salut Robin, Welcome, at long last, to

[Rcpp-devel] Two problem trying to install a package with modules (e.g. testmod) on windows and on CRAN

2013-01-11 Thread Robin Girard
e Daunesse - CS 10207 - F-06904 Sophia Antipolis Cedex Tel: +33.4.93.67.89.64 (~99), Fax: +33.4.93.95.75.35 e-mail : robin.gir...@mines-paristech.fr web page perso http://www.mines-paristech.fr/Services/Annuaire/&?id=8828 statov