[Rd] Comments to promptMethods/promptClass

2005-02-20 Thread W.E. Wolski
Hi, The Rd file sceleton created using function _promptMethdos_ contains *only* the following fields: name docType alias title description section{Methods} keyword while _promptClass_ creates in addition fields like: author references seealso examples and even is invalid due to: ~Make other

Re: [Rd] Subsetting using dimnames on S4 array-based class

2005-02-17 Thread Witold Eryk Wolski
define my class differently for subsetting using dimnames to work? Even if they are not really being checked, I would like to be able to use subsetting in this way as it makes code more readable when using arrays with many dimensions. _____

[Rd] Undocumented S4 methods: generic coerce and siglist matrix, Massvector

2005-02-10 Thread Witold Eryk Wolski
nction in one of the Rd files. Yours Eryk -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-30-83875219 __("<_ http://www.molgen.mpg.de/~wolski \__/'v' http://r4proteomics.sourceforge.net||/ \ m

[Rd] S4 packages and .Rdata file.

2005-01-30 Thread Witold Eryk Wolski
ion of the method the old method stored months ago in the .Rdata file was called again and again. Is not there a better way to avoid such problems than deleting the .Rdata file? Eryk -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-3

Re: [Rd] S4 class no longer accepts matrix in array slot under 2.0.1

2005-01-11 Thread Witold Eryk Wolski
ass(), I see that R recognises "matrix" as a subclass of "array" (and vice-versa). So is this new behaviour correct? You conclude incorrectly, as noted above. [this is a re-posting to R-devel of a question earlier posted to R-help, which attract

[Rd] pixmap package and pdf Device.

2004-11-24 Thread Wolski
Hi, The following code generates a invalid (?) pdf file. pdf("test.pdf") x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=terrain.colors(8)) plot(x) dev.off() This pdf can be viewed but not printed Trying to print causes to crash gv as well as acrobat windows XP Yours /E. --please do not edit

[Rd] Re: [R] R/S-related projects on Sourceforge? Trove Categorization

2004-11-18 Thread Witold Eryk Wolski
Hi, This are the project which I have extracted from all your mails. 1. http://sourceforge.net/projects/rpgsql/ R PostgreSQL Interface 2. http://sourceforge.net/projects/r-spatial/ R package for spatial data classes 3. http://sourceforge.net/projects/rpy/ RPy (R from Python) 4. ht

[Rd] R/S-related projects on Sourceforge? Trove Categorization

2004-11-17 Thread Witold Eryk Wolski
rge is 967697. https://sourceforge.net/tracker/?func=detail&atid=350001&aid=967697&group_id=1 -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-30-83875219 __("<_ http://www.molgen.mpg.de/~wolski \__/

Re: [Rd] Questions on package creation

2004-11-11 Thread Witold Eryk Wolski
ut it. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-30-83875219 __("<_ http://www.molgen.mpg.de/~wolski \__

[Rd] whishlist: legend - changing color of the boxes-border

2004-11-08 Thread Wolski
ration. Therefore why not use it to specify colors to borders of boxes? Yours /E Dipl. bio-chem. Eryk Witold Wolski @MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin'v' tel: 0049-30-83875219

Re: [Rd] install/build/build --binary

2004-11-06 Thread Witold Eryk Wolski
. I am using Windows XP and R 2.0.1beta . Thanks. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin tel: 0049-30-83875219

Re: [Rd] error in plot.dendrogram (PR#7300)

2004-10-21 Thread wolski
ile.remove("hres.rda") dFile <- paste(getwd(),"/hres.rda",sep="") if(!file.exists(dFile)) download.file(url ="http://www.molgen.mpg.de/~wolski/hres.rda";, dest= dFile,mode="wb") load(dFile) hresd plot(hresd) In one think you are right,

Re: [Rd] error in plot.dendrogram (PR#7300)

2004-10-21 Thread Witold Eryk Wolski
ile.remove("hres.rda") dFile <- paste(getwd(),"/hres.rda",sep="") if(!file.exists(dFile)) download.file(url ="http://www.molgen.mpg.de/~wolski/hres.rda";, dest= dFile,mode="wb") load(dFile) hresd plot(hresd) In one think you are right, the X axis. B

[Rd] error in plot.dendrogram (PR#7300)

2004-10-21 Thread wolski
drawn. #The interested reader can download the save(hresd,file="hres.rda") #from the following loacation www.molgen.mpg.de/~wolski/hres.rda Yours /E --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw

Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-10-11 Thread Witold Eryk Wolski
(), y = numeric(), model = NULL) { if(is.null(model)) model <- lm(y ~ x) callNextMethod(.Object, x=x, y=y, model=model) } ) (unfortunately, lm() does not allow fitting vectors of length 0, so if this were a real example there are a few b

[Rd] user interface and documentation of setIs and setAs, some suggestions (S4).

2004-10-08 Thread Witold Eryk Wolski
nown to me. In this case sorry. /E -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin _ tel: 0049-30-83875219 __("< 'v' http://www.molgen.mpg.de/~wolski \

[Rd] Function _coerce_ in _setIs_ never entered (S4).

2004-10-08 Thread Witold Eryk Wolski
;) ,def=function(object) { print(length(object)) } ) xx<-as.list(1:4) names(xx)<-letters[1:4] mvca<-new("MVCa") [EMAIL PROTECTED]<-xx printlength(mvca) Any suggestions? /E -- Dipl. bio-chem. Witold Eryk Wolski MPI-Mo

Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-09-30 Thread Witold Eryk Wolski
s foo") if (!is.null([EMAIL PROTECTED])) cat(" does have a lm object in slot y!") }) Eric -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin _ tel: 0049-30-8387

Re: [Rd] Problem with _new_ if class "lm" in object representatio n.

2004-09-30 Thread Witold Eryk Wolski
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 d

Re: [Rd] Problem with _new_ if class "lm" in object representation.

2004-09-29 Thread Witold Eryk Wolski
;) and new("Ctest",test="bla",bla="brum") within one initialization function? Using match.call? missing is not enough I think. /E setClass("Ctest" ,representation( test="character" ,bla="character" ,mod="lm" ) ) J

Re: [Rd] Problem with _new_ if class "lm" in object representation.

2004-09-29 Thread Witold Eryk Wolski
e both S3 classes. (of course except that lm is in in THE stats package) Is it intended to keep two different "models" of treating S3 classes? One for S3 class from the recomended, "base" packages and a different one for S3 classes from contributed packages? I assume not. If,

Re: [Rd] Ordering of values returned by unique

2004-09-29 Thread Witold Eryk Wolski
een book has no index entry for 'unique'. In S-plus the implementation of unique.default(x) uses x[!duplicated(x)]. So what is the "Blue book", the "Green book", and MASS 4th Ed? efg ______ [EMAIL PROTECTED]

[Rd] Problem with _new_ if class "lm" in object representation.

2004-09-29 Thread Wolski
Hi! Consider this code. setClass("Ctest" ,representation( test="character" ,bla="character" ,mod="lm" ) ) new("Ctest",test="bla") #This produces an error. #Error in validObject(.Object)

Re: [Rd] Ordering of values returned by unique

2004-09-29 Thread Witold Eryk Wolski
evidence is pretty strong that unique(x) will always return elements in the same order as they first appear in x. But it would be nice if the documentation for 'unique' explicitly stated that this is the behavior for all methods. (It does state this for the array method for 'u

[Rd] Ordering of values returned by unique

2004-09-29 Thread Witold Eryk Wolski
in x) { if(!i%in%res) { count<-count+1 res[count]<-i } } res } /E -- Dipl. bio-chem. Witold Eryk Wolski MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin _ tel: 0049-30-83875219 'v' http://www.

[Rd] browser() is called incidentally (?) somewhere from inside methods::as

2004-09-23 Thread Wolski
Some addtitional info about Npatrick1 > is(Npatrick1) [1] "Massvectorlist" "Mlist" "List" "list" [5] "vector" /E Dipl. bio-chem. Witold Eryk Wolski @ MPI-Moleculare Gene

Re: [Rd] S4 methods and polymorophism

2004-09-22 Thread Wolski
or any extendion (that is: we can add methods). >>> >>>Now, I try to add a method for length to handle "Collection" classes. >>> >>> > getMethod("length") >>>.Primitive("length") >>> >>> >>>*** Q

[Rd] Assignment of a derived instance to the parent container. S3/S4 differences

2004-09-20 Thread Wolski
Hi, Is it intended to support assignment of a derived instance (S3) to a parent container (S4)? setClass("any") setClass("myclass",representation(x="any",y="any")) # I define parent containers x,y #I have an S3 object. xx<-3 class(x) #instantiate a new object of class myclass tt<-new("myclass"

[Rd] specifying _no_ class in setClass representation.

2004-09-20 Thread Wolski
Hi, Is it possible to have a slot to which any arbitrary class can be assigned? /E Dipl. bio-chem. Witold Eryk Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin'v' tel: 0049-30-83875219/ \ ma

[Rd] R CMD check does not checks for superfluous documentation (PR#7231)

2004-09-17 Thread wolski
Hi! Due to package maintenance I have removed some functions but forgot to update the coresponding Rd files. If R CMD check is checking for missing documentation entries why it does not check for documentation entries which tell the user about nonexisting funcitons? In my opinion checking for

[Rd] R CMD check does not checks for superfluous documentation entries.

2004-09-17 Thread Wolski
Hi! Due to package maintenance I have removed some functions but forgot to update the coresponding Rd files. If R CMD check is checking for missing documentation entries why it does not check for documentation entries which tell the user about nonexisting funcitons? In my opinion checking for

RE: [Rd] checking for _non-existing_ -> documentation and sources at one place.

2004-09-17 Thread Wolski
eg something working like R CMD makeRd (perl script)... which genreates Rd files out of it.. Has nobody a perl-script that parseres the R files to generate Rd files? Would someone be interested in something similar. If so let me know please. /E *** REPLY SEPARATOR ***

[Rd] checking for _non-existing_ documentation entries.

2004-09-16 Thread Wolski
Hi! I have renamed some functions and deleted others. I have noticed that R CMD check complains only about newly added functions, but documented non-anymore-existing functions seem not to matter. I knew about prompt and promptMethods promptClass. They are extremely useful if you are starting t

[Rd] prototype in setClass.

2004-09-14 Thread Wolski
Hi! To specify a prototype in the setClass declaration is a great feature. But prototype seems no to work for slots of the "super" class. eg. The following code is declaring first the super class "List". This class has a slot "content". The class "AtomList" inherits from it and I would like to

Re: [Rd] as(object,"list")<- error In .mergeAttrs() ??

2004-09-10 Thread Wolski
Hi! Forgot to ask: Can you restore the behaviour from version 1.9.1? Please. I have 2 packages on Bioconductor and one almost ready which rely on it. And as I just tested the rewrite which changes the inheritance to a contains relation would have more consequences then I thought and not be as ea

Re: [Rd] as(object,"list")<- error In .mergeAttrs() ??

2004-09-10 Thread Wolski
Hi! I am open to any arbitrary way of extending a list. It does not matter to me how complicated it gets. I do it once for my class. What matters to me is what I can do with objects extending from list. Because this is what I am doing often. Hence, further proposals even more complicated are we

Re: [Rd] as(object,"list") as(object,"matrix") differences?

2004-09-09 Thread Wolski
#NAIVE inheritance from list. #define cass setClass("Mlist" ,representation(info="character") #uniq names have to be unique? ,contains="listNamed" )

Re: [Rd] as(object,"list") as(object,"matrix") differences?

2004-09-09 Thread Wolski
Hi! First of all thanks a lot to John Chambers. I think S4 makes some tasks really easier. This mail tries to summarise the mail exchange concerning contains="list" in S4. I do not know all the R "internals" so instead of talking I try to use and to play around with S4. People like I learn by

[Rd] Re: [R] Sweave echoing comments (again)

2004-09-08 Thread Wolski
s P. >>> >>>__ >>>[EMAIL PROTECTED] mailing list >>>https://stat.ethz.ch/mailman/listinfo/r-help >>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [Rd] as(object,"list") as(object,"matrix") differences?

2004-09-08 Thread Wolski
al with. But the >>>spirit of that class is NOT equivalent to lists with a names attribute.) >>> >>>As for extending basic datatypes by S4 classes, that's generally OK, >>>provided you understand the consequences (pages 314-316 of the green >>>boo

Re: [Rd] as(object,"list") as(object,"matrix") differences?

2004-09-07 Thread Wolski
Thank you very much. Sincerely yours Eryk. Dipl. bio-chem. Witold Eryk Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin'v' tel: 0049-30-83875219/ \ mail: [EMAIL PROTECTED]---W-W--

Re: [Rd] package methods different behaviour R1.9.1 patched and R2.0.0

2004-09-07 Thread Wolski
exisiting as. functions, as.vector in >>>this case. >>> >>>The result is indeed the same as coercing mmm to "matrix" first and then >>>to vector >>> >>>R> as(as(mmm, "matrix"), "vector") >>> [1] 1 2 3 4

[Rd] as(object,"list") as(object,"matrix") differences?

2004-09-07 Thread Wolski
Hello! as(object,"list") and as(object,"matrix") behave quite differently if it comes to their attributes. I define two classes. One of them "contains" a "list" the other a "matrix" setClass("myclass" ,representation(info="character") ,contains="matrix" ) setClass("mylist" ,representation(info="c

[Rd] package methods different behaviour R1.9.1 patched and R2.0.0

2004-09-07 Thread Wolski
I had a typo in the previous mail "Massvector" extends "matrix" not "Matrix" /E __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] package methods different behaviour R1.9.1 patched and R2.0.0

2004-09-07 Thread Wolski
Hi! Concerning different behaviour between 1.9.1 patched and: R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.0 Under development (unstable) (2004-09-06), ISBN 3-900051-07-0 Subtitle: as(x,"vector"); x is of class "Massvector"; never enters setAs("Massvector","vector"..

[Rd] * checking S3 generic/method consistency ... WARNING Error in .tryQuietly({

2004-09-03 Thread Wolski
Hi! In the R directory of the package I have several files. This is because i defined several classes and I like to store each class in separate file. There is a inheritance defined between those classes. eg calibrestat (defined in file calibrestat.R) extends (contains) calibstat (defined in fil

Re: [Rd] Packing of data files in packages

2004-08-27 Thread Wolski
er ti >>>zip each data file individually and use the functions to read from >>>zipped files, or are there some other solution? >>>Did'nt find anything in "Writing R extensions". >>> >>>Kjetil >>> >>>

[Rd] How to enable ANSII C checking?

2004-08-26 Thread Wolski
How can I tell R CMD check to check for this? I would find it usefully if R CMD check behaves with this respect similar on all platforms. Eryk. Dipl. bio-chem. Eryk Witold Wolski@MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin 'v' t

Re: [Rd] Cookbook, was Re: [R] R on gentoo amd64, etc.

2004-08-21 Thread Wolski
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 >~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 > >__ >[EMAIL PROTECTED] mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel Dipl. bio-chem. E

Re: [Rd] promptClass("numeric")

2004-08-16 Thread Wolski
hods in package lattice) and I would like to to provide intensive and extensive explanation with examples. But in case if my method "foo" which is so simple (it just prints "foo") I would like to use promptClass. Yours Eryk. *** REPLY SEPARATOR *** On 8

[Rd] promptClass("numeric")

2004-08-16 Thread Wolski
Hi! Have written some functions with signature "numeric". eg. setGeneric("foo", function(object,...) standardGeneric("foo")) setMethod("foo",signature(object="numeric"),def = To generate the Rd file sceleton i use > promtClass("numeric") A shell of class documentation has

[Rd] Problem with plot (PR#6875)

2004-05-12 Thread wolski
Hi! Pinned the problem with plot down a bit. I can reproduce it with only 2 lines of R on my Windows XP machine. (today reinstalled R1.9.0) and Bioconductor packages updated. Can anyone reproduce this behaviour? (I am surely reproducing this error only if library(ROC) is loaded at the beginning

[Rd] Process R segmentation with strsplit() (PR#6601)

2004-02-19 Thread wolski
Getting a crash with R1.8.1 on windows 2000 an linux with the strsplit. Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw32 status = major = 1 minor = 8.1 year = 2003 month = 11 day = 21 language = R Version: platform = i386-pc-mingw32 arch = i386 os

[Rd] Wondering about behavior of function as? methods package

2004-02-02 Thread wolski
Hi! I wondering about the behavior of the 'as' function. After reading the following sentences: ?as: Returns the version of this object coerced to be the given Class. and page 285 of programming with data: "When a class extends another class, a call to as on the ... Specially page 292 "If t