similar to: Documenting classes and methods: was Re: R-devel Digest, Vol 3, Issue 23

Displaying 20 results from an estimated 5000 matches similar to: "Documenting classes and methods: was Re: R-devel Digest, Vol 3, Issue 23"

2003 Jun 10
1
c(...) and methods
I have been writing some S4 classes and have a problem about how I might pass a signature to "c()". Take the following example: setClass("collection", representation("list", date="POSIXt")) x <- new("collection", list(1,2,3), date=Sys.time()) y <- new("collection", list(4,5,6), date=Sys.time()) obviously, I can do c(x,y), but
2003 Aug 05
3
s4 methods and base
I'm sure that many people are in the same position as me in that they are trying to write packages and code that is vaguely "future proof". Would it be possible to get some guidance on how the R-core team see the evolution of the "base" package with regard to s4 methods. There seem to be quite a lot of inconsistencies between s3 and s4 methods and classes currently 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
2005 Oct 18
1
Error in message logs with samba-3.0.14a-2
Okay, here's the background. Fedora Core 4, all recent updates. Using samba-3.0.14a-2. Trying to mount a remote shared folder, and sharing it for local users in my office. Using /etc/fstab to auto-mount it on bootup. Here is the /etc/fstab line that I use to do this: //share/ccc /gobo smbfs username=XXXXX,password=XXXXXX,uid=10395,gid=30038,fmask=770,dmask=770 0 0 I use winbind to
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?
2003 Sep 18
0
non-numeric binary ops?
Has there been a recent change in the behavior of binary operators? In SparseM it was, until quite recently ok to do scalar multiplication but now, > A*4 Error in A * 4 : non-numeric argument to binary operator > 4*A Error in 4 * A : non-numeric argument to binary operator > A%*%A An object of class "matrix.csr" Slot "ra": [1] 1 1 1 Slot "ja": [1] 1 2 3
2003 Jul 30
2
building packages using S4 methods
I have been building a package around a sequence of S4 classes which I have coded in separate *.R files in the "./R" subdirectory of the package. The package builds without error, but when I load it in R I get: Error in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses) : Class "xxxx" extends an undefined class ("yyyyyy" I guess R is trying to
2003 Sep 30
3
Adding Tk extensions to R for windows
Hi, I'm developing an R/TclTk application which uses the BWidget and Tktable Tk extensions and I'm trying to make it easy to install. For now, I'm focusing on Windows users who start with nothing. I have built Tcl/Tk and Tktable for windows using Msys/MinGW. (BWidget contains only Tcl scripts so does not need building.) I have then copied Tktable and BWidget into the lib subdirectory
2003 Jul 11
2
unz()
I am having problems getting the unz() function to work as a connection to start reading a file... z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r") readLines(z,2) yields the following problems: > z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r") Error in unz("c:/temp/stoxx.zip",
2003 Nov 03
2
POSIXct under R-1.8.0 with Methods package
I am having problems porting a package to R-1.8.0 where I have complex S4 classes with slots inheriting from POSIXct. For example: > setClass("test1", representation(date="POSIXct")) [1] "test1" > new("test1", date=as.POSIXct("2003-10-09")) Error in ext@test(object) : couldn't find function "%in %" Under R-1.7.1 this worked
2003 May 19
3
how to run R as a daemon
Hi all, Using R a as a real-time application called by Php for a website, I would like to run one R process only, which would manage user connections. For the time each user who asks for an analysis causes a new R process to start, which is not suitable in prevision of many users. R needs about 30 seconds to run the script which makes the analysis. The problem is that this waiting time is n
2003 May 13
2
RMySQL crashes R
I have justed upgraded R v1.7.0 on Windows NT 4 and have installed the latest RMySQL (version 0.5-1)and DBI (version 0.1-5) packages. When I issue the following commands (tactfully adjusted) R just crashes and disappears, any ideas? require(RMySQL) m <- dbDriver("MySQL") con <- dbConnect(m, dbname="xxx", user="xxx", password="xxx",
2002 Nov 05
1
function showMethods and inheritance
Hi, The following question might come from my (deep) misunderstanding of the concepts in the package 'methods'. I have a class 'A', and a class 'B' inheriting 'A' (so defined with 'setClass' and the parameter 'contains="A"'. The class A has a method 'mymethod'. A call to 'showMethods("mymethod")' return the
2003 Sep 17
2
possible bug in diag()
It concerns trival diagonal matrices: > diag(1) [,1] [1,] 1 > diag(rnorm(1)) <0 x 0 matrix> > diag(rnorm(1),nrow=1) [,1] [1,] 0.4843697 There's an obvious work around... but I thought it was worth notifying the list. Regards, John Marsland ********************************************************************** This is a commercial communication from
2011 Jun 11
0
ext3 and btrfs various Oops and kernel BUGs
Dear all, (please Cc) yesterday I had two bugs with btrfs and ext3 occurrences, always happening when plugging in an external USB btrfs disk. Today I had a BUG which is purely ext3 related. The last bug was with yesterdays latest git checkout. Here are the three bugs/oops: that one was with 3.0.0-rc2 (exactely) Jun 10 14:50:23 mithrandir kernel: [40871.704129] BUG: unable to handle kernel
2003 Dec 03
1
Rblas for dual Xeon
Does anybody have a tuned Rblas.dll compiled against ALTLAS for a dual Xeon system? Unfortunately, we have very strict security that does not allow compilers of any sort on production desktops - we only have Pentium III development PCs. Regards, John Marsland ********************************************************************** This is a commercial communication from Commerzbank AG.\ \
2004 Oct 26
1
Problem with make recommended
I have been having problems making the recommended packages under windows NT when WINHELP is set to NO. It seems to go ahead and create the chm files and then fall over with an error. The base packages work fine. Clearly I can fix this myself messily, but I thought it might be useful feedback. Regards, John Marsland _ platform i386-pc-mingw32 arch i386 os mingw32 system
2003 Nov 06
2
GDB under windows
Does anybody have some simple instructions to get me going using the GNU debugger GDB under windows with R? The R Extensions manual mentions briefly debugging under unix, but I've seen seen GDB mention in the Bloodshed Dev C++ IDE so it should be possible to use it with R? Regards, John [Using R-1.8.0 under Windows NT 4.0]
2003 Jul 09
2
Packages, generics, S3 and S4
My question has two parts. The first is with regard to the frame or environment in which generic functions are defined in packages. It seems as though they are defined (i.e. exist as objects) in frame 1, even when defined in a package. The following is a short example: setClass("track",representation(x="numeric",y="numeric")) plotTrack <- function(x,y,...)
2004 Feb 27
2
Packages in R & Java
Yes, lots of packages do use C/Fortran code ... it would be great if there were more packages that are "pure R" especially since the advent of S4 classes and namespaces. Is it worth suggesting that we create a designation "pure R" for packages that have no external source code and encourage more of these? Indeed, now the number of packages is so big could they be classified to