Re: [Rd] beginner's guide to C++ programming with R packages?

2009-07-03 Thread Philippe Grosjean
Ross Boylan wrote: On Fri, 2009-06-26 at 16:17 -0400, Whit Armstrong wrote: But this draws me back to the basic question. I don't want to run R CMD INSTALL 20 times per hour. How do developers "actually" test their code? check out RUnit for tests. http://cran.r-project.org/web/packages/RUnit/

Re: [Rd] beginner's guide to C++ programming with R packages?

2009-07-03 Thread Ross Boylan
On Fri, 2009-06-26 at 16:17 -0400, Whit Armstrong wrote: > > But this draws me back to the basic question. I don't want to run R > > CMD INSTALL 20 times per hour. How do developers "actually" test > > their code? > > check out RUnit for tests. > http://cran.r-project.org/web/packages/RUnit/inde

Re: [Rd] Dynamic libraries

2009-07-03 Thread Duncan Murdoch
On 03/07/2009 4:37 PM, robin cowan wrote: I am trying to write a dynamic linked library for R, in Pascal. You need to tell us what Pascal compiler you're using. You may need to ask your compiler provider how to compile something to interface with R, or tell us all sorts of details that you m

[Rd] Dynamic libraries

2009-07-03 Thread robin cowan
I am trying to write a dynamic linked library for R, in Pascal. (This is to speed up the execution of a simulation that I am running in R.) I know Pascal might not be the perfect language for this (C or Fortran being more natural), but from what I have read I think it should work. Though

Re: [Rd] Matrix with random number

2009-07-03 Thread Fabio Mathias
Thanks very much! Fábio Mathias Corrêa   UFLA --- Em qua, 1/7/09, Kjell Konis escreveu: De: Kjell Konis Assunto: Re: [Rd] Matrix with random number Para: "Fabio Mathias" Cc: r-devel@r-project.org Data: Quarta-feira, 1 de Julho de 2009, 8:30 Hi Fabio, Your f

[Rd] Bug report (PR#13798)

2009-07-03 Thread mimil5252
Full_Name: Emilien Henry Version: 2.9.1 OS: Submission from: (NULL) (80.13.174.5) R often stops working after execution of some packages (R commander or ade4TkGUI for example) Signature du problème : Nom d’événement de problème: APPCRASH Nom de l’application: Rgui.exe Version de l’appli

[Rd] factor() calls sort.list unnecessarily?

2009-07-03 Thread Martin Morgan
R-devel, factor(x) can take a long time on large character vectors (more than a minute in the example below). This is because of a call to sort.list. > str(x) chr [1:3436831] "chr5" "chr10" "chr16" "chr3" "chr4" "chr15" ... > Rprof("/tmp/factor.Rprof") > invisible(factor(x)) > Rprof() > summaryR

Re: [Rd] Conditional dependency between packages

2009-07-03 Thread Jon Olav Skoien
I agree that require makes it clearer what happens, so I will probably change. The disadvantage is the (for some users confusing) messages/warnings if the package is not installed. Wrapping it in with suppressWarnings and suppressMessages before reprinting the load message solves that though:

Re: [Rd] package post install instructions

2009-07-03 Thread Romain Francois
A somewhat related question. Can one install a hook to be called when __any__ package is loaded. Something like this : setHook(packageEvent(".*", "onLoad"), function(...) grDevices::ps.options(horizontal=FALSE)) Romain On 07/02/2009 09:38 AM, Romain Francois wrote: Hello, I've