Re: [Rd] Starting R Commander doesn't work (PR#13806)

2009-07-06 Thread Peter Cowan
On Mon, Jul 6, 2009 at 1:25 AM, wrote: > Full_Name: Noyb > Version: 2.9.1 > OS: Ubuntu 9.04 > Submission from: (NULL) (141.53.34.152) > > > Hello, > I installed the GUI R Commander and tried to open it out of R by > Noyb, It looks like your new to R, welcome to the community. A couple quick note

Re: [Rd] Speed up code, profiling, optimization, lapply vs. loops

2009-07-06 Thread Kasper Daniel Hansen
Aside from the advice from other people, you seem to be doing many glm calls. A big part of a call to a model function involves setting up the design matrix, check for missing values etc. If I understand you description correctly you may only need to do this once. This will require some pok

Re: [Rd] feature request Windows: open .R script with Rgui.exe from (PR#13811)

2009-07-06 Thread murdoch
On 06/07/2009 6:50 AM, f.papenme...@iwm-kmrc.de wrote: > Full_Name: Frank Papenmeier > Version: 2.9.1 > OS: Windows Vista > Submission from: (NULL) (134.2.190.254) > > > Hi, > > is it possible to modify Rgui.exe in order to allow the following behavior: > > Double-click in Windows explorer on f

Re: [Rd] feature request Windows: open .R script with Rgui.exe from Explorer (PR#13808)

2009-07-06 Thread Duncan Murdoch
On 06/07/2009 6:50 AM, f.papenme...@iwm-kmrc.de wrote: Full_Name: Frank Papenmeier Version: 2.9.1 OS: Windows Vista Submission from: (NULL) (134.2.190.254) Hi, is it possible to modify Rgui.exe in order to allow the following behavior: Double-click in Windows explorer on fooscript.R will open

[Rd] Protection stack overflow when calling setGeneric()/setMethod() from within .onLoad()

2009-07-06 Thread Hervé Pagès
Hi list, Calling setGeneric()/setMethod() from within the .onLoad() hook of MyPkg package produces the following error: > gctorture(TRUE) > library(MyPkg) .onLoad(): ok1 .onLoad(): ok2 Error : protect(): protection stack overflow Error : .onLoad failed in 'loadNamespace' for 'MyPkg'

[Rd] R 2.8->2.9 change that breaks some upgrade scenarios

2009-07-06 Thread Hin-Tak Leung
I finally got round to look at a little problem I have - most of the time when I use R I would be using snpMatrix (now part of bioconductor, I wrote a substantial part of), so I had $HOME/.Rprofile to save some typing. Upgrading, switching versions used to work fine with R 2.8 then it broke wit

[Rd] Re port generating

2009-07-06 Thread true-searcher
Can somebody help me. I'm trying to use R language in a process of automatiacal report generating. I find a mechanizm of usind DOM models for writing xml files. I'm trying to find some gui for creating a temletes for creating DOM models or for generating R-code to construct and write with R langua

[Rd] feature request Windows: open .R script with Rgui.exe from Explorer (PR#13808)

2009-07-06 Thread f . papenmeier
Full_Name: Frank Papenmeier Version: 2.9.1 OS: Windows Vista Submission from: (NULL) (134.2.190.254) Hi, is it possible to modify Rgui.exe in order to allow the following behavior: Double-click in Windows explorer on fooscript.R will open an instance of Rgui.exe with the script being opened as

[Rd] Starting R Commander doesn't work (PR#13806)

2009-07-06 Thread mb990434
Full_Name: Noyb Version: 2.9.1 OS: Ubuntu 9.04 Submission from: (NULL) (141.53.34.152) Hello, I installed the GUI R Commander and tried to open it out of R by > library("Rcmdr"). The following message occurred: "Lade nötiges Paket: tcltk Error in firstlib(which.lib.loc, package) : Tcl/Tk auf

[Rd] success(?) with cross-compiling R package with R 2.9.1

2009-07-06 Thread Hin-Tak Leung
Hi, (I am not longer on R-devel - please CC:) Just when Fedora 11 is shipping a gcc 4.4 based cross-compiler - the last major distro to ship a cross-compiler, but the first to ship a gcc 4.4- one.(both Suse & Debian has been so so for a while, and I expect Ubuntu as well), and the mingw peopl

[Rd] Installation of R_2.9.1 & readline (PR#13805)

2009-07-06 Thread mb990434
Full_Name: Noyb Version: 2.9.1 OS: Ubuntu 9.04 Submission from: (NULL) (141.53.34.152) Hello, when I try to install R by "./configure", I get the following message: . . . configure: error: --with-readline=yes (default) and headers/libs are not available . Installation by "./configure --with-re

Re: [Rd] Speed up code, profiling, optimization, lapply vs. loops

2009-07-06 Thread Søren Højsgaard
If you do Rprof() Rprof(NULL) summaryRprof() then you'll get a listing of how much time is spent in each function of . Regards Søren Fra: r-devel-boun...@r-project.org [r-devel-boun...@r-project.org] På vegne af Thorn Thaler [thot...@sbox.tugraz.at] S

Re: [Rd] Speed up code, profiling, optimization, lapply vs. loops

2009-07-06 Thread Gabriel Becker
Rprof() is definitely what you want to look at. Another couple pieces of advice: First, allocate lists/vectors all at once whenever possible. Furthermore, even when not possible, do NOT allocate lists one position at a time inside large loops. If you can, make a guess about how long a list you nee

Re: [Rd] Speed up code, profiling, optimization, lapply vs. loops

2009-07-06 Thread Roger Peng
My advice would be to use the profiler 'Rprof()' --- you may find that the loop is not really the problem. In my experience, there's relatively little difference between 'lapply' and a 'for' loop, although 'lapply' can be faster at times. -roger On Mon, Jul 6, 2009 at 4:26 AM, Thorn Thaler wrote:

Re: [Rd] [R] problem with internal functions in Windows

2009-07-06 Thread Duncan Murdoch
On 7/6/2009 9:30 AM, Duncan Murdoch wrote: On 7/6/2009 8:23 AM, antonio.gasparr...@lshtm.ac.uk wrote: I kept those functions as internal because users don't need to call them directly to use all the functionalities of the package (they are called by other functions). Nonetheless, I want to ma

Re: [Rd] [R] problem with internal functions in Windows

2009-07-06 Thread Duncan Murdoch
On 7/6/2009 8:23 AM, antonio.gasparr...@lshtm.ac.uk wrote: I kept those functions as internal because users don't need to call them directly to use all the functionalities of the package (they are called by other functions). Nonetheless, I want to make them available and documented because the

Re: [Rd] [R] problem with internal functions in Windows

2009-07-06 Thread Duncan Murdoch
This is more of an r-devel topic, so I've sent my reply there. On 06/07/2009 6:50 AM, antonio.gasparr...@lshtm.ac.uk wrote: Dear R users, I included 2 internal functions in the package 'dlnm', called 'mkbasis' and 'mklagbasis'. Despite they are not meant to be called by the users, I included

[Rd] Speed up code, profiling, optimization, lapply vs. loops

2009-07-06 Thread Thorn Thaler
High everybody, currently I'm writinig a package that, for a given family of variance functions depending on a parameter theta, say, computes the extended quasi likelihood (eql) function for different values of theta. The computation involves a couple of calls of the 'glm' routine. What I'm