Re: [Rd] "Incompatible methods" for overloaded operator

2012-06-21 Thread Kohske Takahashi
In my view the class a and b should inherit same parent, like class c. And S3methods should be defined for the class c. Actually, this is not a workaround. It will go with the more oop-ish design. kohske 2012/6/21 Winston Chang : > On Wed, Jun 20, 2012 at 10:49 PM, Martin Morgan wrote: > >> On

[Rd] Have download.packages consider non-CRAN repositories

2012-06-21 Thread Ingmar Schuster
Hi List, I've set up a CRAN-like repository (not a CRAN mirror) on the local filesystem (this will change to http in the future). R has been told about this repository using the following entry in R_HOME/etc/repositories: PMR2PMR2file:///Users/arbeit/Documents/clarin/Open_Science/PMR2/ TRU

Re: [Rd] Have download.packages consider non-CRAN repositories

2012-06-21 Thread Ingmar Schuster
I was not completely explicit on this part: everything works as expected when I do pass repos="file:///Users/..." as an option. Only I'm trying to eliminate the need for passing it. Ingmar 2012/6/21 Ingmar Schuster : > Now I expected download.packages(), install.packages() etc. to look > for pa

Re: [Rd] "Incompatible methods" for overloaded operator

2012-06-21 Thread Renaud Gaujoux
Hi, I may be mistaken here but a possible interpretation of: "If a method is found for just one argument or the same method is found for both, it is used." could be that "the same method" here does not mean identical in term of object/content (as identical tests), but means that the two argu

[Rd] debug R objects at C level

2012-06-21 Thread Adrian Duşa
Dear R-devel, I am now at a debugging phase, and would like to inspect the (individual) values in an arbitrary R vector. It should be simple, but after hours of reading I am simply unable to find the right information. A possible C code is: ± # include # include # include SEXP

Re: [Rd] debug R objects at C level

2012-06-21 Thread Duncan Murdoch
On 12-06-21 7:38 AM, Adrian Duşa wrote: Dear R-devel, I am now at a debugging phase, and would like to inspect the (individual) values in an arbitrary R vector. It should be simple, but after hours of reading I am simply unable to find the right information. A possible C code is: ±±

Re: [Rd] Have download.packages consider non-CRAN repositories

2012-06-21 Thread Duncan Murdoch
On 12-06-21 5:58 AM, Ingmar Schuster wrote: Hi List, I've set up a CRAN-like repository (not a CRAN mirror) on the local filesystem (this will change to http in the future). R has been told about this repository using the following entry in R_HOME/etc/repositories: PMR2PMR2file:///Users/

Re: [Rd] debug R objects at C level

2012-06-21 Thread Adrian Duşa
On Thu, Jun 21, 2012 at 3:02 PM, Duncan Murdoch wrote: > On 12-06-21 7:38 AM, Adrian Duşa wrote: >>[...] > > You seeing the value, not a pointer, but you are using an integer format to > display a real.  You need the %f or related format. > > I would also recommend using Rprintf() rather than prin

Re: [Rd] Have download.packages consider non-CRAN repositories

2012-06-21 Thread Uwe Ligges
On 21.06.2012 14:05, Duncan Murdoch wrote: On 12-06-21 5:58 AM, Ingmar Schuster wrote: Hi List, I've set up a CRAN-like repository (not a CRAN mirror) on the local filesystem (this will change to http in the future). R has been told about this repository using the following entry in R_HOME/et

Re: [Rd] Have download.packages consider non-CRAN repositories

2012-06-21 Thread Ingmar Schuster
2012/6/21 Duncan Murdoch : > On 12-06-21 5:58 AM, Ingmar Schuster wrote: >> >> Hi List, >> >> I've set up a CRAN-like repository (not a CRAN mirror) on the local >> filesystem (this will change to http in the future). R has been told >> about this repository using the following entry in >> R_HOME/e

[Rd] package slot of generic "[" and missing env@target?

2012-06-21 Thread Hin-Tak Leung
Hi, Since upgraded to R 2.15, I have a problem with duplicate S4 class name no longer works (the reason for having duplicate S4 class names is just software forks - they are largely identical but don't have an inheritence relationship, and will never have such). This is happening with "librar

[Rd] Ctrl-C at the Rterm prompt is remembered (unless pressing ENTER).

2012-06-21 Thread Henrik Bengtsson
Hi, there is a minor glitch with Ctrl-C on Windows: 1. Start Rterm.exe 2. Press Ctrl-C (without ENTER afterwards) to generate a user interrupt signal. 3. Type Sys.sleep(1e6) + ENTER. 4. The user interrupt in Step 2 causes Sys.sleep() in Step 3 to be interrupted. I can reproduce this behavior on