similar to: building packages using S4 methods

Displaying 20 results from an estimated 7000 matches similar to: "building packages using S4 methods"

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 Aug 05
1
RE: [R] ^ operation much slower in R 1.7.1 than in R 1.7 .0 ???
I have both the CRAN binary and my own compiled version of R v1.7.1 on the same machine (Dell Pentium III 800 MHz running NT 4) Using the example provided earlier: > phi <- 1.6180339887498949 > a <- floor(runif(750000)*1000) > system.time(b <- (phi^a - (-phi)^(-a))/sqrt(5))[3] I get 10.99 secs on the CRAN binary and 2.09 secs on my own compiled version. I hope this helps
2004 Jul 22
2
Files and classes in a package?
While installing my small package, I met a tricky problem. For clarity, let me explain it with the following simplified example. In ~/pkg/R/aclass.R, setClass("aclass", contains="bclass", representation(i="numeric")) In ~/pkg/R/bclass.R, setClass("bclass", representation(j="numeric")) After building a "pkg" package, the file
2003 Aug 05
0
RE: [R] ^ operation much slower in R 1.7.1 than in R 1.7 .0 ???
I used the packaged "MinGW-2.0.0-3.exe" exactly as specified on http://www.stats.ox.ac.uk/pub/Rtools/ - in fact I used these recommendations throughout. According to the release notes MinGW version 2.0.0 contains the following list of packages: GCC-3.2-core-20020817-1 binutils-2.13-20020903-1 mingw-runtime-2.2 w32api-2.0 gdb-5.1.1-1 make-3.79.1-20010722 (binary renamed as mingw32-make)
2009 Jan 08
1
File name determines success or failure of package installation -- please help
Synopsis: I am trying to build and install a package in R, but I have run into a problem where the file names determine success or failure of the package installation. I started with a single file containing two class definitions. This package installs properly. If I split the classes into two files, the build fails. If I simply change the file name of one file with no other changes, the
2006 Oct 26
2
S4 pb in R 2.5.0
Hi, When playing interactively with the S4 system, I've tried to define the following class: > setClass("A", representation("integer")) [1] "A" > showClass("A") Slots: Name: .Data Class: integer Extends: Class "integer", from data part Class "vector", by
2013 Sep 13
2
R CMD check fails in R-devel r63910
Hi, The R CMD check is successful in R 3.0.1 but fails to install package lmerTest under R-devel r63910, Here is what I get: ** preparing package for lazy loading Error in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, : no definition was found for superclass "merMod" in the specification of class "merModLmerTest" In DESCRIPTION file I have:
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",
2005 Aug 23
1
ROracle installation problem
Hi there, I am trying to install ROracle but I get this error. I have an error in reconcilePropertiesAndPrototype. (My LD_LIBRARY_PATH is set with the oracle lib) Thanks, Mathieu # R CMD INSTALL --configure-args='--enable-extralibs' ../ROracle_0.5-5.tar.gz * Installing *source* package 'ROracle' ... creating cache ./config.cache checking how to run the C preprocessor... cc -E
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
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 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",
2013 Oct 03
1
check warning with .onLoad() and setClass()
Hi I am writing a package in which I define a new class in the .onLoad() hook: ,---- | .onLoad <- function(libname, pkgname) { | setClass( | "inDrak", | representation( | init = "SpatialGridDataFrame" | ), | contains = "simObj" | ) | } `---- The class "simObj" is defined in the package, which
2003 Jun 13
1
Documenting classes and methods: was Re: R-devel Digest, Vol 3, Issue 23
Might it be an idea to make "?" a special operator akin to "+" or "[", R users could then write their own help functions - may be even making "?" generic? With the proposed xml help system one could imagine quite sophisticated context sensitive help systems. Regards, John Marsland PS this has been a very useful debate for those of us enthusiastically
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
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
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
2012 Mar 21
1
Trouble installing the XML package
Hello everyone, I am probably not the only one having trouble with this package but here goes. I want to install XML on Ubuntu. I installed libxml2-dev and everything works out fine until I get the following: Error in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, : No definition was found for superclass "namedList" in the specification of class