Re: [Rd] cut takes long time

2010-06-16 Thread Deepayan Sarkar
On Wed, Jun 16, 2010 at 3:56 PM, Gabor Grothendieck wrote: > The following cut command takes nearly 10 seconds on my machine even > though the length of input vector is only 6.  I am running on Windows > Vista with C2D BLAS using R 2.11.1.  Using the default BLAS and either > R 2.10.1 or "R versio

[Rd] constrOptim( ): conflict between help page and code

2010-06-16 Thread John Nolan
There is a contradiction between what the help page says and what constrOptim actually does with the constraints. The issue is what happens on the boundary. The help page says The feasible region is defined by ‘ui %*% theta - ci >= 0’, but the R code for constrOptim reads if (any(ui %*%

[Rd] cut takes long time

2010-06-16 Thread Gabor Grothendieck
The following cut command takes nearly 10 seconds on my machine even though the length of input vector is only 6. I am running on Windows Vista with C2D BLAS using R 2.11.1. Using the default BLAS and either R 2.10.1 or "R version 2.12.0 Under development (unstable) (2010-05-31 r52164)" also give

Re: [Rd] GUI's and R background processes

2010-06-16 Thread Louis Bajuk-Yorgan
> I am new to R and have created an application using R 2.10, with a graphical > UI using TclTk 8.5, running on windows 7, quad core machine. > The intention of the application is to launch calculations and display > results on a graphical dashboard. > > I've reached a roadblock, and I need to

Re: [Rd] Package development process?

2010-06-16 Thread Hadley Wickham
>      What about the encouragement to add unit tests, if only disguised as > examples? Examples are not unit tests. Examples are a convenient way of testing some aspects of the package, but serve a rather different purpose to tests. The R community does not emphase testing nearly as much as other

Re: [Rd] Package development process?

2010-06-16 Thread Spencer Graves
Hi, Hadley: What about the encouragement to add unit tests, if only disguised as examples? I've found the unit tests to be a powerful tool to help improve and maintain the quality of packages to which I contribute. To this end, Sundar and I added a column "Autochecks" to the t

Re: [Rd] Package development process?

2010-06-16 Thread Hadley Wickham
Hi Spencer, I think it is the emphasis on documentation that makes the R development process unique. Many other languages have equivalents to CRAN and R-forge - few others require the attention to documentation that R does. Hadley On Tue, Jun 15, 2010 at 8:45 PM, Spencer Graves wrote: > Hello,

[Rd] R CMD check error in v2.12.0

2010-06-16 Thread Brandon Whitcher
I have received the following error for my package oro.nifti under "CRAN checks" for r-devel-linux-ix86; i.e., http://www.r-project.org/nosvn/R.check/r-devel-linux-ix86/oro.nifti-00check.html - using R version 2.12.0 Under development (unstable) (2010-06-12 r52259) - using platform: i686-

Re: [Rd] Package development process?

2010-06-16 Thread Gabor Grothendieck
On Wed, Jun 16, 2010 at 12:20 AM, Spencer Graves wrote: > Hi, Gabor: > > >      Thanks.  I added a row for Ruby and columns for "Package manager" and > "Collaborative development platform" to the table of "Selected Repositories" > in the Wikipedia entry for "Software repository".  Please correct m

[Rd] using C++ finalizers for external pointers

2010-06-16 Thread Romain Francois
Hello, In Rcpp, we use a C++ template to finalizers for external pointers: template void delete_finalizer(SEXP p){ if( TYPEOF(p) == EXTPTRSXP ){ T* ptr = (T*) EXTPTR_PTR(p) ; delete ptr ; } } This works fine. Or at least it has appeared to work fine for some time. Ho

Re: [Rd] Package development process?

2010-06-16 Thread Spencer Graves
Thanks. I added rows for C++, Haskell, and PHP from your stackoverflow.com reference. I skipped the rest because I wasn't sure if they really fit and because I ran out of time for this right now. More suggestions (including encouragement to study the stackoverflow.com reference more) will b