Re: [Rcpp-devel] Review request: Sandboxed R integration via RInside

2014-11-20 Thread Smith, Dale (Norcross)
---Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: Thursday, November 20, 2014 10:38 AM To: Smith, Dale (Norcross) Cc: Dirk Eddelbuettel; Christian Authmann; rcpp-de...@r-forge.wu-wien.ac.at Subject: RE: [Rcpp-devel] Review request: Sandboxed R integration via RInside

Re: [Rcpp-devel] Review request: Sandboxed R integration via RInside

2014-11-20 Thread Smith, Dale (Norcross)
ter: Follow @Fiserv  ·  LinkedIn: Connect Fiserv  .  Careers: Join Fiserv Fiserv What's Next NowSM Campaign -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: Thursday, November 20, 2014 10:14 AM To: Smith, Dale (Norcross) Cc: Dirk Eddelbuettel; Christian Authman

Re: [Rcpp-devel] Review request: Sandboxed R integration via RInside

2014-11-20 Thread Smith, Dale (Norcross)
I've always had licensing concerns with RInside. I preferred Rserve and it worked well for our purposes years ago. This new code sounds like it is more flexible than Rserve and deserves to be a separate package, not in RInside. But that's a personal preference to avoid the *appearance* of licen

Re: [Rcpp-devel] Rcpp API Reference

2014-09-05 Thread Smith, Dale (Norcross)
Analyst Financial & Risk Management Solutions Fiserv Office: 678-375-5315 www.fiserv.com<http://www.fiserv.com/> From: Yixuan Qiu [mailto:yixuan@cos.name] Sent: Thursday, September 04, 2014 10:17 PM To: Smith, Dale (Norcross) Cc: rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-d

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Smith, Dale (Norcross)
Doxygen is so useful because it’s automatically generated. Keeping up with additions or changes with hand-crafted API documentation is not easy. You should at least include a link to the Rcpp Gallery. http://gallery.rcpp.org/ I’d prefer detailed documentation for the unit tests as they are very

Re: [Rcpp-devel] New package: RcppMLPACK, integration with MLPACK using Rcpp

2014-07-28 Thread Smith, Dale (Norcross)
Excellent work, thanks very much. Dale Smith, Ph.D. Senior Financial Quantitative Analyst Financial & Risk Management Solutions Fiserv Office: 678-375-5315 www.fiserv.com From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-boun...@r-forge.wu-wien.ac.at] On B

Re: [Rcpp-devel] Generic R and C++ discussion

2014-04-08 Thread Smith, Dale (Norcross)
As a user of Rcpp, with an interest in using R and C++ together, I would prefer that we have this discussion without rancor. I'm subscribing to both lists because * Rcpp works for me. I haven't upgraded since I don't want the hassle until the end of the year. * Other ideas may work better. I d

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Smith, Dale (Norcross)
"In short, this is not trivial." No, it isn't. If you are not completely wedded to optimize(), I would suggest another route. Again, I recommend nlopt or some other package which has the algorithms you need. And you can investigate nloptr if you want to call the routines in that R package as Di

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-27 Thread Smith, Dale (Norcross)
Try nlopt. I'm using it in Visual Studio and also in Rcpp. I downloaded the binaries from the web site last time, but you can compile yourself (something I will do again in the future). Dale Smith, Ph.D. Senior Financial Quantitative Analyst Financial & Risk Management Solutions Fiserv Office: 6

Re: [Rcpp-devel] Recommendations on how to incorporate pmvnorm function

2014-01-30 Thread Smith, Dale (Norcross)
QuantLib has a modification due to Graeme West of Allen Genz's algorithm from pmvnorm. You may be able to call that code in your project by linking with it. Genz also has Fortran code on his web site. Perhaps that would be useful as well. I think it's easy enough to read the 2004 paper and writ

Re: [Rcpp-devel] Some beginner questions

2013-11-25 Thread Smith, Dale (Norcross)
Alessandro, If you are somewhat inexperienced with C++, I suggest reading Effective C++ by Scott Meyers. It's easy to get lost in some of his explanations as they are very detailed, but you can just follow his advice, and come back to them later. Dale Smith, Ph.D. Senior Financial Quantitative

Re: [Rcpp-devel] feature proposal: ListOf

2013-10-23 Thread Smith, Dale (Norcross)
Interesting. Again, I would say "build it and they will use it". Dale Smith, Ph.D. Senior Financial Quantitative Analyst Financial & Risk Management Solutions Fiserv Office: 678-375-5315 www.fiserv.com -Original Message- From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-b

Re: [Rcpp-devel] Armor, Shield and Shelter.

2013-10-11 Thread Smith, Dale (Norcross)
Romain, I don't think I have any use for your proposed code at this time. However, I would like to say that reducing the number of macro calls is a worthy goal. My own attitude is "build it and they will use it". Dale Smith, Ph.D. Senior Financial Quantitative Analyst Financial & Risk Managemen

Re: [Rcpp-devel] long long

2013-09-20 Thread Smith, Dale (Norcross)
I agree with Romain's approach, which I was going to send later today: " After reading this thread and others, I would tentatively suggest maintaining a C++11 compliant version on r-forge for those who need it. I do recognize this is additional work, but may be worth the effort. A case can be ma

Re: [Rcpp-devel] Favourite Rcpp examples for newbies ?

2013-08-01 Thread Smith, Dale (Norcross)
After reviewing Jonathan's suggestion and Dirk's blog post on MCMC, I do agree with him. As Dirk points out, the Rcpp code is almost identical to the R code, making it an easier segue from R to C++ given the target audience. Dale Smith, Ph.D. Senior Financial Quantitative Analyst Risk & Complian

Re: [Rcpp-devel] Favourite Rcpp examples for newbies ?

2013-08-01 Thread Smith, Dale (Norcross)
http://gallery.rcpp.org/articles/fast-factor-generation/ Dale Smith, Ph.D. Senior Financial Quantitative Analyst Risk & Compliance Fiserv Office: 678-375-5315 www.fiserv.com -Original Message- From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-boun...@r-forge.wu-wien.ac.a

Re: [Rcpp-devel] simple Rcpp function produces: "AddressSanitizer: attempting free on address which was not malloc"

2013-07-09 Thread Smith, Dale (Norcross)
lt;http://www.fiserv.com/> From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-boun...@r-forge.wu-wien.ac.at] On Behalf Of Smith, Dale (Norcross) Sent: Tuesday, July 09, 2013 7:35 AM To: Dirk Eddelbuettel; Darren Cook Cc: rcpp-de...@r-forge.wu-wien.ac.at Subject: Re: [Rcpp-devel] s

Re: [Rcpp-devel] simple Rcpp function produces: "AddressSanitizer: attempting free on address which was not malloc"

2013-07-09 Thread Smith, Dale (Norcross)
My $0.02. Dirk is right - pick something and stick with it, but avoid the raw pointers, especially if your experience is limited. It's much easier to learn the smart pointers std::shared_ptr and std::unique_ptr, or their boost equivalents, rather than deal with raw pointers in new code. htt

Re: [Rcpp-devel] macros RCPP_FUNCTION_...,

2013-06-19 Thread Smith, Dale (Norcross)
Hi all, I've been reading this with some interest. I suggest: * Announce an api change via Stack Overflow, blog, list, etc and put the announcement into the NEWS for the next release. * Announce an effective date on the change and outline the reasons. I think this should satisfy everyone and gi

Re: [Rcpp-devel] presentation

2013-05-22 Thread Smith, Dale (Norcross)
Is it similar to the Revolution Analytics presentation http://www.revolutionanalytics.com/news-events/free-webinars/2011/successful-uses-of-r-sas-in-banking/ I am unable to access meetup.com at work so hosting it on Rcpp Gallery would be greatly appreciated. Dale Smith, Ph.D. Senior Financial Q

Re: [Rcpp-devel] Best way to compute M'M if M is triangular using RcppArmadillo

2013-04-17 Thread Smith, Dale (Norcross)
I agree with Dirk. Take a look at the arma::mat constructor in fastLm. If you are not modifying M, use the raw memory constructor. http://gallery.rcpp.org/articles/fast-linear-model-with-armadillo/ I don't see any other way to avoid using Rcpp::wrap in the return statement. Note there may be ot

Re: [Rcpp-devel] [rcpp-devel] Rcpp Gallery Example fastLm vs Rnative lm

2013-03-21 Thread Smith, Dale
: 678-375-5315 www.fiserv.com -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: Thursday, March 21, 2013 12:52 PM To: Hadley Wickham Cc: Smith, Dale; rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] [rcpp-devel] Rcpp Gallery Example fastLm vs Rnative lm

Re: [Rcpp-devel] [rcpp-devel] Rcpp Gallery Example fastLm vs R native lm

2013-03-21 Thread Smith, Dale
Thanks. Should have noticed this myself. Dale Smith, Ph.D. Senior Financial Quantitative Analyst Risk & Compliance Fiserv Office: 678-375-5315 www.fiserv.com -Original Message- From: Hadley Wickham [mailto:h.wick...@gmail.com] Sent: Thursday, March 21, 2013 11:55 AM To: Smith, Dal

[Rcpp-devel] [rcpp-devel] Rcpp Gallery Example fastLm vs R native lm

2013-03-21 Thread Smith, Dale
I have a question about the fastLm example in the Gallery http://gallery.rcpp.org/articles/fast-linear-model-with-armadillo/. I put the code directly into my package (after renaming it fastLmProto so I don't mask the RcppArmadillo function by the same name). After building the package, I wanted

Re: [Rcpp-devel] Filling a big.matrix in Rcpp

2013-03-14 Thread Smith, Dale
Write it up for Rcpp Gallery. Dale Smith, Ph.D. Senior Financial Quantitative Analyst Risk & Compliance Fiserv Office: 678-375-5315 www.fiserv.com From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-boun...@r-forge.wu-wien.ac.at] On Behalf Of Mic

Re: [Rcpp-devel] Rstudio package build and Rcpp::compileAttributes()

2013-02-07 Thread Smith, Dale
7, 2013 at 10:59 AM, Smith, Dale wrote: > Hello all, > > > > I'm using Rstudio 0.97.306, R 2.15-2, and Rcpp 0.10.2 with Windows 7 > Professional x64. I recently switched to using the build tool in > Rstudio, however, my generated file RcppExports.cpp and RcppExports.R

[Rcpp-devel] Rstudio package build and Rcpp::compileAttributes()

2013-02-07 Thread Smith, Dale
Hello all, I'm using Rstudio 0.97.306, R 2.15-2, and Rcpp 0.10.2 with Windows 7 Professional x64. I recently switched to using the build tool in Rstudio, however, my generated file RcppExports.cpp and RcppExports.R are checked into version control, so they are read-only. The build fails with

Re: [Rcpp-devel] Loops, iterators and accumulate

2012-11-15 Thread Smith, Dale
I'm not sure what compliers you are using out there, but gcc does have a way to enable warnings for this type of implicit conversion. -Wconversion Warn for implicit conversions that may alter a value. This includes conversions between real and integer... http://gcc.gnu.org/onlinedocs/gcc/Warnin

Re: [Rcpp-devel] RInside missing R.dll

2012-08-28 Thread Smith, Dale
I'm working with Rcpp now. I would say use pre-built binaries, including R, whenever possible. I've found the most success by avoiding local builds. Now if I could just get corporate to approve the 64 bit builds for the GSL... There are pre-built GSL libraries for 64 bit Windows available, if you

[Rcpp-devel] Compile problem on Win x64 resolved with -std=c++0x

2012-07-17 Thread Smith, Dale
Hi all, I had the "long long unsigned int" problem today on Win x64. I passed --no-multiarch to R CMD build after making a package using Rcpp.package.skeleton. The error message in part was *** C:/R/R-2.15.1/library/Rcpp/include/Rcpp/internal/wrap.h:433:11: error: invalid conversion from 'long lo

Re: [Rcpp-devel] Another rcpp package for examples

2012-05-23 Thread Smith, Dale
"There is particular nastiness involved on windows platforms as the model is built with MSVC, yet calls GCC code (ie Rcpp) via extern "C"." I was not aware this particular nastiness was possible. At some point I'll look at your code to see what it's doing. This particular nastiness may actually si

Re: [Rcpp-devel] RcppArmadillo -- crude benchmark of various mcmcvs rcppbugs

2012-04-30 Thread Smith, Dale
-375-5315 Mobile: 678-982-6599 Mail: dale.sm...@fiserv.com www.fiserv.com -Original Message- From: Whit Armstrong [mailto:armstrong.w...@gmail.com] Sent: Friday, April 27, 2012 11:34 AM To: Smith, Dale Cc: Dirk Eddelbuettel; rcpp-devel Subject: Re: [Rcpp-devel] RcppArmadillo -- crude benchma

Re: [Rcpp-devel] RcppArmadillo -- crude benchmark of various mcmcvs rcppbugs

2012-04-27 Thread Smith, Dale
As the MCMCpack and rcppbugs packages were built on Linux, I can't install them on my Windows box. I'll have to get the sources and try to make them when I have time. Thanks, Dale Smith, Ph.D. Senior Financial Quantitative Analyst Risk & Compliance Fiserv. 107 Technology Park Norcross, GA 30092

Re: [Rcpp-devel] RInside under Windows

2012-02-14 Thread Smith, Dale
My experience is that any odd error you get with Windows 7 is definitely related to security. Right-click the exe in Explorer and select Run as Administrator. Try to start a Cygwin terminal as Administrator to do command line work (assuming you are using Cygwin). I have no choice but to run RStud