Displaying 20 results from an estimated 2000 matches similar to: "promptClass("numeric")"
2006 Dec 01
2
promptClass misses methods
I've had repeated problems with promptClass missing methods, usually
telling me a class has no methods when it does.
In my current case, I've defined an S4 class "mspathCoefficients" with
a print method
setMethod("print", signature(x="mspathCoefficients"), function(x, ...)
{ # etc
The file promptClass creates has no methods in it.
>
2003 May 23
3
Documenting S4 classes; debugging them
1. I'm putting together my first package that uses S4 classes and
objects. I'd like to document them, but I'm not sure what the
documentation should look like, and package.skeleton doesn't produce
any at all for the classes or methods.
Are there any good examples to follow?
2. How do I do the equivalent of debug(foo), when foo is an anonymous
function being used as a method?
2007 May 27
2
[Bioc-devel] promptClass
promptClass fails to identify methods associated with the class. Here
is a fix:
Index: promptClass.R
===================================================================
--- promptClass.R (revision 41719)
+++ promptClass.R (working copy)
@@ -165,7 +165,7 @@
if (nmeths > 0) {
.meths.body <- " \\describe{"
for (i in 1:nmeths) {
- .sigmat
2008 Mar 30
1
package.skeleton.S4
Hi the devel list.
I am adapting the package.skeleton to S4 classes and methods
I would have been very proud to post a new working function on this list.
Unfortunately, I do not manage to solve all the problems. Mainly
- sys.source does not compile a file with setClass
- dumpMethod does not exists yet
In the following code, thise two problems are notified by a line
#################
Still
2004 Sep 16
1
checking for _non-existing_ documentation entries.
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 to write a package. But what with existing packages that have to be rewritten?
Having code and
2003 May 24
2
Re: R-devel Digest, Vol 3, Issue 23
I am another person who has had trouble documenting S4 classes and
(particularly) methods. The methods package itself is pretty cool by the
way, but it is a pity that there are as yet no guidelines on S4 in the
"Writing R Extensions" document.
I have actually put together a guide on S4 documentation myself for the use
of my own lab which is at
2003 Feb 19
3
Rcmd check does not recognize formal generic function as code object
Dear all,
I am trying to write a package using formal methods and classes from the
methods package. I have not been able to get the package to pass rcmd check
without warnings, because rcmd check does not recognize my generic
functions as code objects and therefore queries why they have documentation
entries.
I have isolated the problem in a very small trivial example which I give
below. I
2008 Mar 20
1
S4 : package creation
Hi the list,
Using S4, how can we create a package? In "S4 Classes in 15 pages, more
or less", they put all the classes definition in a function that will be
called at the opening of the library and they add "by hand" a Rd file.
Is it the only way ? Is there something like "S4.package.skeleton"?
Thanks
Christophe
2009 Nov 09
1
\\signature macro generated by promptMethods
Hello,
promptMethods generate a macro for signatures, but the macro does not
exist in the Rd parser.
> setClass("track",
+ representation(x="numeric", y="numeric"))
[1] "track"
> setGeneric("foo", function(x){ standardGeneric("foo") } )
[1] "foo"
> setMethod( "foo", "track",
2001 Jul 03
1
python playlist bug?
I don't know if it is bug or not, but when I played with ices.py module I
found that the body of script is executed everytime any function (like
ices_get_next_song) is called.
This cause that when you use sceleton (ices.py.dist) it doesn't work.
I mean this line
songnumber=-1
at begin of file.
My python is version 1.5.2
It's a bug or normal behavior?
Regards,
Madr
--
2006 Oct 02
1
documenation duplication and proposed automatic tools
I've been looking at documenting S4 classes and methods, though I have a
feeling many of these issues apply to S3 as well.
My impression is that the documentation system requires or recommends
creating basically the same information in several places. I'd like to
explain that, see if I'm correct, and suggest that a more automated
framework might make life easier.
PROBLEM
Consider a
2004 Jun 28
1
RMysql installation problem.
Hi!
I am trying to install the RMySQL package. The installation stops with the following error message.
path to mysql is set.
setenv PKG_CPPFLAGS /home/arabidopsis/software/R1.9.1/linux/mysql/include
setenv PKG_LIBS /home/arabidopsis/software/R1.9.1/linux/mysql/lib
R CMD INSTALL RMySQL_0.5-5.tar.gz
#....cut cut.
creating src/Makevars
** libs
gcc
2004 Oct 19
1
Fatal error: invalid home drive
Dear R-helpers,
I have just installed R2.0.0 onto my machine which already had R1.9.1
present.
I then tried to add to R2.0.0 a library called GLMM written by James McBroom
for R1.6.0. Unfortunately, R2.0.0 does not recognise the library, even
though
R1.9.1 does. This is not because I have used the wrong case in the call to
the
library:
> library('GLMM')
> "Error in
2008 Mar 24
1
revision 44805 breaks promptMethods()
Hi,
It seems that promptMethods() was changed in revision 44805 to include a
call to "isGenericFunction" that at least as of revision 44861 does not
exist as far as I can tell.
This results in:
could not find function "isGenericFunction"
when evaluating e.g. promptMethods("myGeneric")
Thanks,
Michael
[[alternative HTML version deleted]]
2004 Oct 06
4
R2.0.0 bug in function vcov in library survival (PR#7266)
Full_Name: Sven Sandin
Version: 2.0.0
OS: SuSE Linux 9.0
Submission from: (NULL) (81.227.17.135)
Have just compiled and installed R-2.0.0.tar.gz running SuSE9.0.
The function vcov do not accept "coxph" object as input any longer.
The same R-program running R1.9.1 do work. R-program attached below.
Exporting the coxph object from R2.0.0 to R1.9.1 I get vcov ouput in R1.9.1.
Exporting
2004 Jul 26
3
Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)
Hallo!
I read SPSS data in the following way:
library(Hmisc)
library(foreign)
dat<-spss.get("surv_abb.sav")
In R1.9.1 I got the message:
"Error in all(arg == choices) : Object "typeDate" not
found"
In R1.8.0 the same script works fine.
Does anybody know a possibilty to read a SPSS file
under R1.9.1?
Thanks!
Karl
2005 Feb 10
2
Mean calculated from R1.9.1 different from R2.0.1
Hello,
I ran my simulations on the Unix verson of R1.9.1 and the Windows version
of R2.0.1 on XP. I kept getting different values for the mean of the same
column of the same matrix, and am perplexed. I would appreciate if anyone
could help explain the difference?
Here is a sample code:
set.seed(7293)
z1v <- rnorm(1000, mean=68, sd=13)
z1v <- (z1v-mean(z1v))/sd(z1v)
Using R1.9.1 on Unix,
2009 Jun 21
5
Roxygen vs Sweave for S4 documentation
Hi,
I have been using R for a while. Recently, I have begun converting my
package into S4 classes. I was previously using Rdoc for documentation.
Now, I am looking to use the best tool for S4 documentation. It seems that
the best choices for me are Roxygen and Sweave (I am fine with tex).
Are there any users of Roxygen or Sweave who can comment on the strengths or
weaknesses of one or othe
2001 Nov 30
0
New version of methods package
A new version of the package has been committed to the r-devel branch.
There are a lot of changes, mostly non-visible, many of those to tighten
up some possible problems. For example, slot assignment now checks the
validity of the value being assigned, and basic classes cannot be
overriden.
There is a version of the promptClass function by Vince Carey, to
produce shell of documentation for a
2004 Sep 29
2
RSXML - Parsing XML Documents on Internet
R Users -
I asked about this a few months ago and never did quite figure it out, so with more information, allow me to try again.
If I use the following code:
library(xml)
xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml", isURL = TRUE)
I receive this error:
Error in xmlTreeParse("http://home.comcast.net/~larsenmtl/xmlTestDoc.xml"", :
error in