Re: [Rd] install.packages with R 2.9.1 under Vista?

2009-06-30 Thread spencerg
Dear Uwe: Thanks very much. Based on your suggestion, I deleted "C:\\Users\\sgraves\\Documents/R/win-library/2.9", which got created when I first installed R 2.9.1 into the default, write-protected area and then did "install.packages". When I uninstalled that write-protected copy and

Re: [Rd] install.packages with R 2.9.1 under Vista?

2009-06-30 Thread Uwe Ligges
spencerg wrote: What do I need to do to get "install.packages" to work properly for me in R 2.9.1 under Vista? Currently, install.packages in Rgui 2.9.1 by default goes to "C:\\Users\\sgraves\\Documents/R/win-library/2.9". This is a problem for me, because R running under Emacs

Re: [Rd] S4 class redefinition

2009-06-30 Thread Ross Boylan
On Tue, 2009-06-30 at 12:58 -0700, Ross Boylan wrote: > I haven't found much on S4 class redefinition; the little I've seen > indicates the following is to be expected: > 1. setClass("foo", ) > 2. create objects of class foo. > 3. execute the same setClass("foo", ...) again (source the same fil

[Rd] S4 class redefinition

2009-06-30 Thread Ross Boylan
I haven't found much on S4 class redefinition; the little I've seen indicates the following is to be expected: 1. setClass("foo", ) 2. create objects of class foo. 3. execute the same setClass("foo", ...) again (source the same file). 4. objects from step 2 are now NULL. Is that the expected b

Re: [Rd] Matrix with random number

2009-06-30 Thread Fabio Mathias
Thanks Mr. Barry Rowlingson However, the matrix appears to zeros! Notice the code below! Please! Code in fortran     subroutine mat(x,l,c,a)     integer l,c     double precision x(l,c), a     integer i,j      do j = 1, c        do i = 1, l         call fseedi()     x(i,j) = myrbeta(a,1,2

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Tony Plate
Thomas Friedrichsmeier wrote: On Tuesday 30 June 2009, Romain Francois wrote: This was more of a question. I'd like to know if there is a way for objects to broadcast that they have changed. This would be very useful to for example implement an object browser in a front-end, which I guess is

Re: [Rd] Matrix with random number

2009-06-30 Thread Barry Rowlingson
>     x(i,j) = call myrbeta(1,4,5) ! It's correct? > The code of the error in R is: > dyn.load("func.so") > Error in dyn.load("func.so") : >   unable to load shared library > '/home/julio/Orientados/Fabio/Fortran/mat-fortran/func.so': >   /home/julio/Orientados/Fabio/Fortran/mat-fortran/func

[Rd] install.packages with R 2.9.1 under Vista?

2009-06-30 Thread spencerg
What do I need to do to get "install.packages" to work properly for me in R 2.9.1 under Vista? Currently, install.packages in Rgui 2.9.1 by default goes to "C:\\Users\\sgraves\\Documents/R/win-library/2.9". This is a problem for me, because R running under Emacs does not current

[Rd] Matrix with random number

2009-06-30 Thread Fabio Mathias
Hello! I have a program in Fortran and would like to build a matrix with random numbers, I have a function in C. However, I have problems with the use of function in R. Code to compile: R CMD SHLIB mat.f myrbeta.c -o func.so Code in C. #include #include void F77_SUB(fseedi)(void){  

[Rd] Matrix with random number

2009-06-30 Thread Fabio Mathias
Hello! I have a program in Fortran and would like to build a matrix with random numbers, I have a function in C. However, I have problems with the use of function in R. Code to compile: R CMD SHLIB mat.f myrbeta.c -o func.so Code in C. #include #include void F77_SUB(fseedi)(void){  

[Rd] Conditional dependency between packages

2009-06-30 Thread Jon Olav Skoien
Hi, I have already asked a similar question twice without response on the r-help list https://stat.ethz.ch/pipermail/r-help/2009-June/200300.html but this list might be more appropriate. If there is a particular reason for the lacking answers (unclear, missing information, the solution is obvi

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Thomas Friedrichsmeier
On Tuesday 30 June 2009, Romain Francois wrote: > This was more of a question. I'd like to know if there is a way for > objects to broadcast that they have changed. > This would be very useful to for example implement an object browser in > a front-end, which I guess is part of the reason for the t

[Rd] progress bar

2009-06-30 Thread Romain Francois
Hello, Would it be useful to rework txtProgressBar so that front-end can pick it up and propose an alternative display. This could be done for example as a callback, as an option (similar to "pager" for example), or maybe handling a condition (if there was a way to handle conditions from the t

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Romain Francois
On 06/30/2009 11:41 AM, Thomas Friedrichsmeier wrote: > Hi, > > On Tuesday 30 June 2009, Romain Francois wrote: > >> Not sure your trick is full-proof. What happens when the variable you >> copy is already an active binding ? >> > > see promises, below. > >> There should be another wa

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Thomas Friedrichsmeier
Hi, On Tuesday 30 June 2009, Romain Francois wrote: > Not sure your trick is full-proof. What happens when the variable you > copy is already an active binding ? see promises, below. > There should be another way to track > changes. I'm open to suggestions. > It is more about seeing what the o

Re: [Rd] S4 and connection slot [Sec=Unclassified]

2009-06-30 Thread Wacek Kusnierczyk
Martin Morgan wrote: [...] ## Attempt two -- initialize setClass("Element", representation=representation(conn="file")) setMethod(initialize, "Element", function(.Object, ..., conn=file()) { callNextMethod(.Object, ..., conn=conn) }) new("Element") ## oops, connection created b

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Romain Francois
On 06/30/2009 10:35 AM, Thomas Friedrichsmeier wrote: > On Monday 29 June 2009, Romain Francois wrote: > >> I'm attaching a patch that prints this instead: >> > ls.str() >> >> xx : >> >> Although a better behaviour would be to show the binding function. >> > > I can see your point, but

Re: [Rd] active bindings and ls.str

2009-06-30 Thread Thomas Friedrichsmeier
On Monday 29 June 2009, Romain Francois wrote: > I'm attaching a patch that prints this instead: > > ls.str() > > xx : > > Although a better behaviour would be to show the binding function. I can see your point, but note that active bindings are not necessarily slow, and a special treatment may

[Rd] bug in nlme package function predict.lmList (PR#13788)

2009-06-30 Thread zemlys
Full_Name: Vaidotas Zemlys Version: 2.9.0 OS: Ubuntu 8.10 Submission from: (NULL) (213.197.173.50) Steps to reproduce the bug: library(nlme) data(Oxboys) qm=lmList(height~age|Subject,data=Oxboys) grid=with(Oxboys,expand.grid(age=seq(min(age),max(age),length=50),Subject=levels(Subject))) res <-