Re: [Rcpp-devel] Using namespaces to improve code readability

2010-12-17 Thread Douglas Bates
On Thu, Dec 16, 2010 at 5:18 PM, Savitsky, Terrance wrote: > I note that employing the namespace declaration -  using namespace arma; - > allows one to use the declaration of a new armadillo matrix under an > RcppArmadillo header with – mat X(Xr.begin() …. – instead of – arma::mat > X(Xr.begin() …

[Rcpp-devel] Regression in conversion from NumericVector to ComplexVector?

2010-12-17 Thread Christian Gunning
I just tried to rebuild a package that built successfully as of ~August. With new Rcpp, it fails on assigning a NumericVector to a ComplexVector. The gist seems to be as follows: test1 = cxxfunction(, ' ComplexVector tmpc(10); NumericVector tmpd(10, 2.0); tmpc = tmpc + tmpd; retu

[Rcpp-devel] Appropriate scope of Rcpp-quickref?

2010-12-17 Thread Christian Gunning
I was wondering if Rcpp-quickref is an appropriate place for information about RcppArmadillo, RcppGSL, etc. It seems like a nice place to centralize information, as well as "advertise" the other packages. Likewise, Rcpp-quickref is always available since RcppArmadillo etc. depend on Rcpp. The ch

Re: [Rcpp-devel] Regression in conversion from NumericVector to ComplexVector?

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 08:53, Christian Gunning wrote: | I just tried to rebuild a package that built successfully as of | ~August. With new Rcpp, it fails on assigning a NumericVector to a | ComplexVector. The gist seems to be as follows: Aie. Thanks for catching that. | test1 = cxxfunction(

Re: [Rcpp-devel] Appropriate scope of Rcpp-quickref?

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 09:04, Christian Gunning wrote: | I was wondering if Rcpp-quickref is an appropriate place for | information about RcppArmadillo, RcppGSL, etc. It seems like a nice | place to centralize information, as well as "advertise" the other | packages. Likewise, Rcpp-quickref is a

Re: [Rcpp-devel] How to create a new plugin?

2010-12-17 Thread Romain Francois
Le 17/12/10 01:28, Dominick Samperi a écrit : Hello, I managed to create a new plugin by copy/paste/adapt Rcpp.plugin.maker. Is there a better way? Thanks, Dominick Rcpp.plugin.maker is a sort of undocumented function we use for packages we write, just to avoid copy and paste. See how pack

Re: [Rcpp-devel] Appropriate scope of Rcpp-quickref?

2010-12-17 Thread Romain Francois
Le 17/12/10 17:13, Dirk Eddelbuettel a écrit : On 17 December 2010 at 09:04, Christian Gunning wrote: | I was wondering if Rcpp-quickref is an appropriate place for | information about RcppArmadillo, RcppGSL, etc. It seems like a nice | place to centralize information, as well as "advertise" th

[Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dominick Samperi
In the process of migrating from the classic API I have found what appears to be a problem with Rcpp::Datetime. There is no unit test for this situation. Rcpp::Datetime dt("2015-04-15 06:00:00") and Rcpp::Datetime dt("2015-04-15 06:00:00.0") both fail due to a type conversion error. Here is the o

Re: [Rcpp-devel] Appropriate scope of Rcpp-quickref?

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 18:40, Romain Francois wrote: | Le 17/12/10 17:13, Dirk Eddelbuettel a écrit : | > | > On 17 December 2010 at 09:04, Christian Gunning wrote: | > | I was wondering if Rcpp-quickref is an appropriate place for | > | information about RcppArmadillo, RcppGSL, etc. It seems lik

Re: [Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 12:46, Dominick Samperi wrote: | In the process of migrating from the classic API I have | found what appears to be a problem with Rcpp::Datetime. | There is no unit test for this situation. | | Rcpp::Datetime dt("2015-04-15 06:00:00") | and | Rcpp::Datetime dt("2015-04-15

Re: [Rcpp-devel] Appropriate scope of Rcpp-quickref?

2010-12-17 Thread Christian Gunning
| I believe the quickref vignette should be short and scope only Rcpp itself. Ok. > Just finishing / completing Rcpp-quickref is already going to be a lot of work Do you have a short list of "missing" sections not yet included? I'm referring to it regularly now, and have been keeping an eye out

Re: [Rcpp-devel] Regression in conversion from NumericVector to ComplexVector?

2010-12-17 Thread Christian Gunning
On Fri, Dec 17, 2010 at 9:11 AM, Dirk Eddelbuettel wrote: > Aie. Thanks for catching that. Sure. > | test1 = cxxfunction(, ' > |     ComplexVector tmpc(10); > |     NumericVector tmpd(10, 2.0); > |     tmpc = tmpc + tmpd; > |     return(tmpc); > |  ', plugin='Rcpp') > | test2 = cxxfunction(, '

Re: [Rcpp-devel] How to create a new plugin?

2010-12-17 Thread Dominick Samperi
On Fri, Dec 17, 2010 at 12:37 PM, Romain Francois wrote: > Le 17/12/10 01:28, Dominick Samperi a écrit : > > Hello, >> >> I managed to create a new plugin by copy/paste/adapt >> Rcpp.plugin.maker. Is there a better way? >> >> Thanks, >> Dominick >> > > Rcpp.plugin.maker is a sort of undocumented

Re: [Rcpp-devel] How to create a new plugin?

2010-12-17 Thread Dominick Samperi
The warnings are due to the fact that the plugin looks for Makevars (and Makevars.win) in cxxPack/skeleton instead of Rcpp/skeleton. When I copy to cxxPack/skeleton everything works. Since it worked without this change perhaps it falls-over to using Rcpp/skeleton? On Fri, Dec 17, 2010 at 6:02 PM,

Re: [Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 12:10, Dirk Eddelbuettel wrote: | Confirmed, and dito for Rcpp::Date() constructed from a string. | | | Adding Rcpp::Function asPOSIXct("as.POSIXct") and using it | | to convert seems to fix the problem. | | I'll try to look into but may not get to til Sunday. Fixed in sv