[Rd] [R] S4 classes: referencing slots with other slots

2011-02-21 Thread Dan Murphy
5 (If this is well-known, I apologize, but I could not find it anywhere.) Before going too far down the road under the assumption that this S4 self-referencing-via-initialize mechanism will always work (so far so good, in broad contexts) I would be grateful for some confirmation from the development t

[Rd] cut.default labels when short range

2015-10-30 Thread Dan Murphy
Hello: I stumbled across an anomaly when running cut(4,4) in that the rightmost level's right endpoint did not display the expansion of the range as per ?cut.default. Modifying the last example there cut(0:6, 3) produces the documented behavior, as does cut(0:6, 6) but not cut(0:5, 5) However, cut

[Rd] Is difftime a "class"

2013-07-09 Thread Dan Murphy
ple: > setClass("foo", contains = "Date") > setMethod("+", c("foo", "difftime"), function(e1, e2) callNextMethod()) in method for ‘+’ with signature ‘"foo","difftime"’: no definition for class “difftime” [1] "+" &g

[Rd] factor S4 class is NA when as.character method exists

2012-01-23 Thread Dan Murphy
Is there an 'as.character' implementation that works better for S4 classes? I searched help.search("factor S4 class") and help.search("factor S4 as.character") without success. Thank you. Dan Murphy [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] factor S4 class is NA when as.character method exists

2012-01-23 Thread Dan Murphy
nteraction of an S4 'as.character' method with base::factor, but, having exhausted my woeful lack of expertise, I decided to write my original email. Thanks for your consideration. Dan On Mon, Jan 23, 2012 at 8:25 AM, peter dalgaard wrote: > > On Jan 23, 2012, at 16:07 , Dan Murphy

Re: [Rd] factor S4 class is NA when as.character method exists

2012-01-25 Thread Dan Murphy
2)) >> > str(factor(someFoo)) >>Factor w/ 3 levels "x=11","x=12",..: 1 3 1 3 2 >> >> It would be nice to have a list of methods that one >> needs to define for a new class in order to make it >> do the "basic" things you expe

[Rd] Build from Source fails on Loading required package Matrix

2012-08-15 Thread Dan Murphy
ix) is not TRUE ERROR: installing package indices failed * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix' make[1]: *** [Matrix.ts] Error 1 make: *** [recommended] Error 2 Perhaps there are special settings I should be making in MkRules.local? My only modification was MULTI

Re: [Rd] Build from Source fails on Loading required package Matrix

2012-08-15 Thread Dan Murphy
On Wed, Aug 15, 2012 at 8:04 AM, Simon Urbanek wrote: > > Dan, > > On Aug 15, 2012, at 10:54 AM, Dan Murphy wrote: > > > Hello: > > > > I am building R 2.15.1 from source on a Windows 7 machine with the x64 > > toolset, MixTeX, and InnoSetup per > >

Re: [Rd] Build from Source fails on Loading required package Matrix

2012-08-16 Thread Dan Murphy
“make all recommended” ran without error. C:\Program Files\R-2.15.1\R-patched\bin\x64\Rgui.exe worked. Thanks again! Dan On Wed, Aug 15, 2012 at 9:06 AM, Uwe Ligges wrote: > > > On 15.08.2012 17:53, Dan Murphy wrote: >> >> On Wed, Aug 15, 2012 at 8:04 AM, Simon Urbanek >> w