search for: s3classes

Displaying 20 results from an estimated 20 matches for "s3classes".

2008 Aug 15
3
Rcommander installation fails on Fedora 9
...inexpcov? Convenience.h:8: warning: type defaults to ?int? in declaration of ?SEXP? Convenience.h:8: error: expected ?;?, ?,? or ?)? before ?linexpcov? Convenience.h:9: error: expected declaration specifiers or ?...? before ?SEXP? In file included from party.h:22, from Classes.c:9: S3Classes.h:2: error: expected ?)? before ?node? S3Classes.h:3: error: expected ?)? before ?node? S3Classes.h:4: error: expected ?)? before ?node? S3Classes.h:5: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?S3get_nodeweights? S3Classes.h:6: error: expected ?)? before ?node? S3Classes.h:7:...
2004 Jan 22
1
Please help with \usage{} for [.S3Class in Rd-Format
Dear all, I try to submit a library to CRAN but can't overcome the last R CMD CHECK. Can someone enlighten me how to put the \usage{} section for an S3-Method extractor defined as > args(get("[.refdata")) function (x, i = NULL, j = NULL, drop = FALSE, ref = FALSE) NULL I read the "Writing R Extensions" manual and know about \methods{generic}{class}, however I
2015 Jun 12
3
RFC: Declaring "foo.bar" as nonS3method() ?!
On 12/06/2015 10:53 AM, Hadley Wickham wrote: > To me, it seems like there's actually two problems here: > > 1) Preventing all() from dispatching to all.effects() for objects of > class effects > 2) Eliminating the NOTE in R CMD check > > My impression is that 1) actually causes few problems, particularly > since people are mostly now aware of the problem and avoid
2012 Dec 12
1
Lost in S4 and S3 classes
Hi all, this is my first post in R devel? sorry if I lost some of the guidelines. Anyway this is my problem: Version: R version 2.15.2 (2012-10-26) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) I want to make an S4 class that use the output object of the function of nls.lm as a slot: setOldClass("nls.lm") setClass ( Class="TestClass",
2010 May 17
1
format.data.frame containing S4 class with format method
Hi again, I must be misunderstanding something fundamental about how an S4 class stored in a data.frame can be persuaded to print according to a desired format. The help page says: format.data.frame formats the data frame column by column, applying the appropriate method of format for each column. Here is my class: > setClass("A",contains="character") [1] "A"
2015 May 12
2
Unexpected failure when calling new() with unnamed arg and
Hi, The man page for new() suggests that if 'a' is an object with slots "slot1" and "slot2" and C is a class that extends the class of 'a', then the 2 following calls should be equivalent: new("C", a, ...) new("C", slot1=a at slot1, slot2=a at slot2, ...) This is generally the case but I just ran into a situation where it's not.
2015 May 13
2
Unexpected failure when calling new() with unnamed arg and
Thanks Martin for looking into this. H. On 05/13/2015 03:57 AM, Martin Maechler wrote: >>>>>> Herv? Pag?s <hpages at fredhutch.org> >>>>>> on Tue, 12 May 2015 15:18:42 -0700 writes: > >> Hi, > >> The man page for new() suggests that if 'a' is an object with slots >> "slot1" and "slot2" and C is a
2016 Aug 02
0
save/load + all.equal on reference class objects
After I save an object that contains reference class objects in some of its slots to a file and then re-load it, all.equal() seems to break for me. Is this a bug in all.equal, or is it likely caused by bad implementation of methods on my side? (I see that "'all.equal()' gains methods for 'environment's and 'refClass'es" for R 3.2.0, but that was a little while
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 =
2008 Jul 28
0
S4 classes that extend S3 classes
Up to now, writing an S4 class that extends an S3 class (using contains= in the call to setClass) has been discouraged for two main reasons: 1. You can't say anything formal about S3 classes, so validating objects, having formal slots for their properties, etc. are not generally feasible. 2. In any case, the S3 class, which may have multiple strings in the class attribute, was not
2011 Jan 31
1
Generic Functions and Dates
I'm trying to write a generic function that calls different methods depending on the structure of the argument, but not the exact type of its contents. For example, the function 'nan2last' below works for a numeric vector but not for a vector of Date objects. Is there any way to make it work on any vector? setGeneric("nan2last", function(x) {
2015 Oct 08
1
Unexpected failure when calling new() with unnamed arg and
>>>>> Joshua Wiley <jwiley.psych at gmail.com> >>>>> on Thu, 8 Oct 2015 12:19:16 +1100 writes: > Hi, I realize this is an old thread, but just wondering > whether a conclusion was ever reached on this issue? I'm > using formula(NULL) but it would be nice if default > initialization worked for formula classes as well. Well,
2015 May 13
0
Unexpected failure when calling new() with unnamed arg and
>>>>> Herv? Pag?s <hpages at fredhutch.org> >>>>> on Tue, 12 May 2015 15:18:42 -0700 writes: > Hi, > The man page for new() suggests that if 'a' is an object with slots > "slot1" and "slot2" and C is a class that extends the class of 'a', > then the 2 following calls should be equivalent: >
2015 Oct 08
0
Unexpected failure when calling new() with unnamed arg and
Hi, I realize this is an old thread, but just wondering whether a conclusion was ever reached on this issue? I'm using formula(NULL) but it would be nice if default initialization worked for formula classes as well. Cheers, Josh On Thu, May 14, 2015 at 8:13 AM, Herv? Pag?s <hpages at fredhutch.org> wrote: > Thanks Martin for looking into this. H. > > > On 05/13/2015
2008 Oct 20
2
R 2.8.0 is released
I've rolled up R-2.8.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. You can get it (later today) from http://cran.r-project.org/src/base/R-2/R-2.8.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. In case of impatience, try
2008 Oct 20
2
R 2.8.0 is released
I've rolled up R-2.8.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. You can get it (later today) from http://cran.r-project.org/src/base/R-2/R-2.8.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. In case of impatience, try
2009 Jun 26
0
R 2.9.1 is released
I've rolled up R-2.9.1.tar.gz a few hours ago. This is a maintenance release and fixes a number of mostly minor issues. See the full list of changes below. You can get it from http://cran.r-project.org/src/base/R-2/R-2.9.1.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter
2009 Jun 26
0
R 2.9.1 is released
I've rolled up R-2.9.1.tar.gz a few hours ago. This is a maintenance release and fixes a number of mostly minor issues. See the full list of changes below. You can get it from http://cran.r-project.org/src/base/R-2/R-2.9.1.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter
2009 Apr 17
0
R 2.9.0 is released
I've rolled up R-2.9.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. You can get it (later today) from http://cran.r-project.org/src/base/R-2/R-2.9.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. In case of impatience, try
2009 Apr 17
0
R 2.9.0 is released
I've rolled up R-2.9.0.tar.gz a short while ago. This is a development release which contains a number of new features. Also, a number of mostly minor bugs have been fixed. See the full list of changes below. You can get it (later today) from http://cran.r-project.org/src/base/R-2/R-2.9.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. In case of impatience, try