similar to: Arith ops dropping S4 bit [Was: S4 object does not commute? (PR#13222)

Displaying 20 results from an estimated 40000 matches similar to: "Arith ops dropping S4 bit [Was: S4 object does not commute? (PR#13222)"

2008 Oct 30
0
(PR#13209) Arith ops dropping S4 *and* 'object' bit [Was: ...]
>>>>> "JMC" == John Chambers <jmc at r-project.org> >>>>> on Tue, 28 Oct 2008 11:50:38 -0400 writes: JMC> The asymmetry is just the symptom of a more fundamental JMC> issue: There are no operator methods currently defined JMC> for "vector" classes, either combined with each other JMC> or with a non-S4 object.
2009 Jun 05
2
S4: When is validObject issued? (or why S4 is killing me:( ..
Dear UseRs, Does anyone know when exactly the validity is checked in S4? Documentation is silent:(. Here is a small example: setClass("test1",representation(a="numeric")) setMethod("initialize","test1", function(.Object,...){ a<-runif(1) ## here slot "a" is initialized ## callNextMethod(.Object,a=a,...)
2005 Aug 05
1
S4 generating function
Can someone explain what the problem is when I use the generating function? And how to get debug() to stop in the Superclass initialize method? ---- source ----- setClass("Superclass", representation(id = "character"), contains = "VIRTUAL") setMethod("initialize", signature(.Object = "Superclass"),
2004 Sep 30
1
Problem with _new_ if class "lm" in object representatio n.
Hi, But "any" rises some other problems well known from S3. One has "any" for "free" in S3. You don't need S4. . But I know how "if" polluted functions look like in S3. They are hard to understand and to maintain. Hence I am quite happy to use S4. Type-checking is usefull if you program with data. Also if you are on the "C side" of the
2008 Oct 27
1
S4 object does not commute? (PR#13209)
Hello all, It appears that for the simplest of S4 objects, z+1 does not equal 1+z. Presumably this is a bug, as 1+z seems to make a malformed object (at least malformed as an input to str). Thanks, Robert > setClass("test", representation("vector")) [1] "test" > z <- new("test", 1) > identical(z+1, 1+z) [1] FALSE > str(z+1) Formal class
2009 Mar 10
1
S4 generic masking S3 generic when using namespace
Hi, I have two example packages, test1 and test2, where the only code in them is: setGeneric("predict", function(object, ...) standardGeneric("predict")) (get them from http://www.cs.mu.oz.au/~gabraham/test1.tar and http://www.cs.mu.oz.au/~gabraham/test2.tar) The difference between them is that first does not have a namespace, and loads fine. The second has a namespace
2009 Jul 16
1
Handling masked methods
Hi, Say I have two packages, test1 and test2, that both define the generic method train (identical definition), and each has a specific train method for a different S4 object (foo and bar, resp.) I want to be able to call train(foo, x, y) and train(bar, x, y), which doesn't work since test2 masks test1, as seen below. The two solutions I can think of are to a) prefix train,
2009 Feb 04
3
Passing data among multiple instances
Dear R, I have two R instances running at the same time, say instance A and instance B. Is there a simpler way to pass the data in A to B? More precise, I have a stupid example: In instance A, I am running a function "test1" test1 <- function (x1) { x2 <- sin(x1) return(x2) } In instance B, another function "test2" test2 <- function (x2) { x3 <-
2009 Jun 05
1
S4: Initialization method called during setClass??
Dear UseRs, A simple class inheritance example: > setClass("test",representation(a="numeric")) > setMethod("initialize","test", function(.Object,x,...){ print("Initialization!!!") callNextMethod(.Object,a=x,...) }) > new("test",x=23) [1] "Initialization!!!" An
2004 Oct 14
2
setClassUnion
Hello, I have a question concerning "setClassUnion". I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000. I tried to use "setClassUnion" in a package I am currently working on. The situation is similar to the following example: The DESCRIPTION file has entries: Depends: R (>= 2.0.0), methods Imports: methods LazyLoad: yes The NAMESPACE file has
2004 Oct 14
2
setClassUnion
Hello, I have a question concerning "setClassUnion". I'm working with R 2.0.0 Patched (2004-10-06) on windows 2000. I tried to use "setClassUnion" in a package I am currently working on. The situation is similar to the following example: The DESCRIPTION file has entries: Depends: R (>= 2.0.0), methods Imports: methods LazyLoad: yes The NAMESPACE file has
2012 Nov 15
1
bug with mapply() on an S4 object
Hi, Starting with ordinary vectors, so we know what to expect: > mapply(function(x, y) {x * y}, 101:106, rep(1:3, 2)) [1] 101 204 309 104 210 318 > mapply(function(x, y) {x * y}, 101:106, 1:3) [1] 101 204 309 104 210 318 Now with an S4 object: setClass("A", representation(aa="integer")) a <- new("A", aa=101:106) > length(a)
2008 Apr 25
1
samba and openldap authentication issues!
Alight, I've been working on this for too many hours straight. Any help would be much appreciated! (I posted this online to linux questions, it could be easier to read on there... http://www.linuxquestions.org/questions/linux-server-73/samba-and-openldap-authentication-issues-637647/) The problem is users created in smbldap-useradd can not login, unless they also are a local user. for
2013 Oct 14
1
Email address with special characters in userdb
Hi, I have a userdb file set up in passwd-file format containing the following entries: >doveadm user test1*test2 at test.com test1-test2 at test.com test1?test2 at test.com test1 at test2@test.com test1%test2 at test.com I can access the 1st entry (no special characters) no problem: >doveadm user test1-test2 at test.com -f home /var/vmail The 2nd entry (using UTF-8 encoding)
2010 Dec 07
2
local seen flags with shared mailboxes
Hello all, after recent upgrade from 2.0.5 to 2.0.8 it seems that local seen flags for mails reside in shared mailboxes doesn?t work anymore. Before the upgrade I had read mails with account #1. Account #2 (who has access via acl) saw the mails still as unread. Now, no matter who read the mails, the other account see the same flags, immediately. I read the related wiki pages again and tried to
2006 Jul 03
0
S4 object type available for testing
The default prototype object for an S4 class up to now has been a zero-length list (nothing else worked). This is wrong in principle, because it makes the objects look like vectors to low-level C code, and they should not. It may also be the cause of some inefficiency. A new low-level type has been added for these classes. It's currently available in the r-devel version, but not turned
2009 Jan 22
0
Confused about behavior of an S4 object containing a ts object
I posted the question below about a month ago but received no response. I still have not been able to figure out what is happening. I also noticed another oddity. When the data part of the object is a multivariate time series, it doesn't show up in the structure, but it can be treated as a multivariate time series. Is this a bug in str? > setClass("tsExtended", representation =
2007 Jun 06
1
add inverse recursive feature or do a mkdir -p/install -D -d ?
Hi, Background : I am using rsync to push/sync FTP uploaded files from master server to slave servers. On slaves the full directory path of each file doesn't exist so rsync is unable to sync it and there a no options in rsync to do something like "mkdir -p/install -D -d" on destination before sync file. N.B. I don't want to do a full sync of the root/home directory every time a
2009 Dec 11
1
Unable to access shares with capital letters in OpenSUSE 11.0 using samba-3.2.4
Hi All, I installed OpenSUSE 11.0, updated samba server to 3.2.4 version. Added two users in linux and samba with user names "test1" and "Test2". (Please note the capital letter in Test2). Created two shares in /srv/samba/shares "test1" and "Test2". The permissions of the shares are as below. drwx------ 2 test1 users 4096 2009-12-11 12:42 test1 drwx------
2011 Jun 04
1
library(SenoMineR)- Triangle Test Query
Dear R Group I was trying to use the triangle.test function in SensoMineR and strangely i encounter a error in the output of preference matrix from the analysis. To illustrate, pl see the following dataframe of a design with the response and preference collected as shown below: design<-structure(list(`Product X` = c(3, 1, 4, 2, 4, 2, 1, 3, 4, 2, 4, 2, 1, 3, 4, 2, 4, 2, 3, 1), `Product Y` =