Re: [Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3

2016-02-01 Thread Paul Johnson
> On Mon, Feb 1, 2016 at 11:16 AM, Paul Johnson wrote: >> >> Thanks, KK for studying this one. >> >> Am I doing this wrong? >> >> > devtools::install_github("thirdwing/Rcpp", ref = "subsetter") >> Downloading GitHub repo thirdwing

Re: [Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3

2016-02-01 Thread Paul Johnson
Thanks, KK for studying this one. Am I doing this wrong? > devtools::install_github("thirdwing/Rcpp", ref = "subsetter") Downloading GitHub repo thirdwing/Rcpp@subsetter from URL https://api.github.com/repos/thirdwing/Rcpp/zipball/subsetter Error in download(dest, src, auth) : Not Found (HTTP 404

Re: [Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3

2016-01-28 Thread Paul Johnson
Thanks. On Thu, Jan 28, 2016 at 2:42 PM, Dirk Eddelbuettel wrote: > > Paul, > > I can reproduce the segfault on Ubuntu 15.10, "everything current". > Definitely a valid bug report, though a 30mb xlsx may not qualify as > minimal. > I'm glad I did not attach it to an email, then :) The data xlsx

Re: [Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3

2016-01-28 Thread Paul Johnson
Thanks. It has been a while since I used gdb, and I can't recall doing it with R. It looks discouraging to me because I see "" in the symbols. I have to re-learn what symbols are and where to get them. I deleted openxlsx and got clean re-install before trying this. What's this one mean? warnin

[Rcpp-devel] Possible regression in R-3.2.3 or Rcpp 0.12.3

2016-01-28 Thread Paul Johnson
Hello Could I ask for some fresh eyes on this problem? I need to diagnose a segmentation fault that started appearing this week after we updated to R-3.2.3 and also Rcpp updated to 0.12.3 at same time. > > library(openxlsx) > > sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-redhat-l

Re: [Rcpp-devel] Installation tutorial for Rcpp, C++11, and 64-bit Windows

2013-11-24 Thread Paul Johnson
ot when I say "don't install with spaces in the path." It is a tough lesson. Most 'user' things work better with the default: When you do that, Emacs and Notepad++ can't find R if you drop it in off the path. pj Paul Johnson Lost my sig: http://pj.freefaculty.org >

Re: [Rcpp-devel] How much speedup for matrix operations?

2013-11-09 Thread Paul Johnson
Hi If you have the time to test, you will find that some things that you think will be faster are actually slower, while some seemingly unimportant things will give huge acceleration. I predict that you can learn more about R efficiencies, esp. crossprod & tcrossprod, and after you do that, my gu

Re: [Rcpp-devel] Compilation errors creating qtdensity example (on Mac OS X)

2013-04-27 Thread Paul Johnson
:13 AM, Dirk Eddelbuettel wrote: > > On 27 April 2013 at 08:29, Paul Johnson wrote: > | I'm getting numerous errors when I try to create the RInside qtdensity > example. > | > | This is my first experience with Qt so I suspect there's some simple > | thing I'm not

[Rcpp-devel] Compilation errors creating qtdensity example (on Mac OS X)

2013-04-27 Thread Paul Johnson
I'm getting numerous errors when I try to create the RInside qtdensity example. This is my first experience with Qt so I suspect there's some simple thing I'm not doing right. The first two fatal compilation errors I get are: --- qtdensity.cpp:37:31: error: allocation of incomplete type 'QLineEd

[Rcpp-devel] Compile errors in first attempt to use Rcpp/RInside

2013-04-13 Thread Paul Johnson
I'm using Mac OS X 10.8.3 with Xcode 4.6.1 and Mountain Lion Command Line Tools (March 2013). I've installed R.app v.3.0 and in R.app I've installed the packages Rcpp and RInside. In Xcode I've set Framework Search Paths to /Library/Frameworks and Header Search Paths to /Library/Frameworks/R.fram

Re: [Rcpp-devel] problems with rInside in Ubuntu

2013-03-30 Thread Paul Johnson
On Sat, Mar 30, 2013 at 10:17 AM, Walter Mascarenhas < walter.mascaren...@gmail.com> wrote: > >> "distributed LibRInside.a" ? > >> Fist off, you have the capitalization wrong. Second, how am I supposed > to > >> know how YOU built this? I ship SOURCES. You control your builds. > There is > >> no

Re: [Rcpp-devel] Performance question about DataFrame

2013-01-18 Thread Paul Johnson
I think. pj > On Thu, Jan 17, 2013 at 7:46 PM, Paul Johnson wrote: >> >> On Tue, Jan 15, 2013 at 9:20 AM, John Merrill >> wrote: >> > It appears that DataFrame::create is a thin layer on top of the R >> > data.frame >> > call. The guarante

Re: [Rcpp-devel] Performance question about DataFrame

2013-01-17 Thread Paul Johnson
On Tue, Jan 15, 2013 at 9:20 AM, John Merrill wrote: > It appears that DataFrame::create is a thin layer on top of the R data.frame > call. The guarantee correctness, but also means the performance of an Rcpp > routine which returns a large data frame is limited by the performance of > data.frame

[Rcpp-devel] receiving R matrices: question about RcppArmadillo example fastlm

2013-01-10 Thread Paul Johnson
Hello, Rcpp land. I'm still collecting idioms and examples for the usage of Rcpp. Today I'm looking at ways that people manage the importation of R matrices. Consider fasLm.r file in the RcppArmadillo package's examples folder. It uses this this three-step process to bring in a matrix from R. Thi

[Rcpp-devel] Google perftools profiler works best, AFAICT

2013-01-10 Thread Paul Johnson
Here's the writeup with examples on the Google profiler tool as applied to an R package that uses RcppArmadillo. http://pj.freefaculty.org/blog/?p=140 "R package profiling with Google Preftools" I had forgotten until yesterday, but Dirk E. advised me in 2009 to try this out. After having invest

Re: [Rcpp-devel] performance profile from Rcpp or RcppArmadillo code? Matrix subviews, etc

2013-01-06 Thread Paul Johnson
inv_sympd> > const&) 621 49.9598 Amelia.soR void arma::subview_elem2, arma::Mat >::inplace_op, arma::op_inv_sympd> >(a rma::Base, arma::op_inv_sympd> > const&) [self] 1 0.0805 no-vmlinux R /no-vmlinux Oh,well. It is fun w

[Rcpp-devel] performance profile from Rcpp or RcppArmadillo code? Matrix subviews, etc

2013-01-05 Thread Paul Johnson
. here's the example about R submatrix access ## fasterR-matrix-1.R ## Paul Johnson ## 2012-12-23 nReps <- 5000 nVars <- 100 nRows <- 200 ## fn1 with elements is the fastest case scenario ## fn1 <- function(x){ solve(x) } ## extract 2:(nVars+1) rows and columns, returns &quo