similar to: slot named C

Displaying 20 results from an estimated 8000 matches similar to: "slot named C"

2008 Aug 27
1
S4 coercion
I am extending a DBI connection by setClass("TSPostgreSQLConnection", contains=c("PostgreSQLConnection","TSdbOptions")) but the first time I use this I am getting a warning when it tries to coerce the TSPostgreSQLConnection to a PostgreSQLConnection. After the first use the warning stops, but the first warning is causing me problems when I do automatic checks
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
2006 Mar 01
2
Class & Method, S3 / S4
Hi I'm trying to create a class. However, I've some problems... I am used to program php. There I can create a new object and call a specific function of this object. In R, I hoped to create a class similar and then call the function like: Creating the Class: <CODE>----------------------------------- setClass("connect", representation(test="function")) )
2006 Mar 31
1
package?<pac>
When I use package?<pac> the author field gets reproduced twice, once with the \author{ } string and a secod time formatted. Also, would it be possible to make package?<pac> find the overview without the package being attached, or at least give a more informative error message. Paul Gilbert
2008 Feb 04
1
r-release Windows x86_64
I was just looking at the daily checks and it seems the "r-release Windows x86_64 (32-bit)" column is running R2.6.0. Is that correct? Possibly related, an error is being flagged in that column for TSMySQL, which appears to be a problem that should be caught in the other columns too. It is something that has been fixed in my sources for awhile. (I think it was fixed in the
2006 Jun 02
2
task view errors
I am getting several errors about Windows only packages when I use task views. Is this suppose to be a Windows-centric utility? Also, I am sure there must be a simple way to tell which packages are in a view, but I haven't found it. If there isn't, it would be nice to have. Paul Gilbert _______ install.views(c( "Multivariate", "Econometrics", "Finance",
2007 Jul 16
1
S4 coerce
(I am not sure if this is a bug or a request for a more understandable warning, or possible something obvious I should be posting on r-help.) I am trying to coerce an new class object to be a DBIConnection and it does not work the way I think it should: R version 2.5.1 (2007-06-27) ... > require("RMySQL") # or require("RSQLite") Loading required package: RMySQL Loading
2003 Aug 06
1
S4 methods bug in naming of slots (PR#3665)
Hello, I am using R 1.7.1 on a Redhat Linux machine, version 7.3. The following works fine: setClass("ok", representation( "A" = "matrix", "Cmatrix" = "matrix")) new("ok", "A" = diag(4), "Cmatrix" = diag(4)) But the following doesn't work: setClass("notok", representation(
2008 Sep 15
2
S4 coercion responsibility
Should functions or the user be responsible for coercing an S4 object argument containing the proper object (and thus should below be considered a bug in the packages or not)? The example is with RSQLite but the same thing happens with RMySQL, and other DBI packages. > library("RSQLite") Loading required package: DBI > m <- dbDriver("SQLite") > con <-
2008 Apr 23
1
S4 default for coercing
Something has changed in the S4 default for coercing. Am I now suppose to use setAs, or is there something else I should do to make this work: R version 2.7.0 (2008-04-22) .... > require("methods") > setClassUnion("OptionalPOSIXct", c("POSIXct", "NULL")) [1] "OptionalPOSIXct" > setClass("TSmetax",
2006 Oct 24
2
as.missing
(I'm not sure if this is a request for a feature, or another instance where a feature has eluded me for many years.) Often I have a function which calls other functions, and may often use the default arguments to those functions, but needs the capability to pass along non-default choices. I usually do this with some variation on foo <- function(x, foo2Args=NULL or a list(foo2defaults),
2008 May 04
1
S4 / S3 / Sweave problem
I'm not sure if this as a bug or something I am doing wrong. It occurs in both 2.7.0 and 2.6.2. require("methods") setClassUnion("OptionalPOSIXct", c("POSIXct", "NULL")) setClass("TSmetax", representation(serIDs="character", ExtractionDate="OptionalPOSIXct" )) setGeneric("TSmetax", def= function(x,
2009 Oct 15
1
R RSS feed
I was trying to subscribe to an RSS feed from <http://developer.r-project.org/RSSfeeds.html> but IE chokes on DTDs and Firefox also has trouble with this feed. (I'm not sure if it has trouble with DTDs in general.) I went to one of our web developers to see what I should use to read the feed, and he pointed out that the mix of RSS 2.00 and rss-0.91 looks like a mistake: <!--
2006 Apr 13
1
xmkmf? problem
I am having the xmkmf problem below with todays beta, but I also am trying to use an new (PGI 6.1), so lots of other things in my setup may be wrong, and the warning may also be important. Any hints would be appreciated. Paul _____ Red Hat Enterprise Linux AS release 3 (Taroon Update 7) .... checking whether C runtime needs -D__NO_MATH_INLINES... no checking for xmkmf...
2006 Jun 01
1
package installation errors
I installed R-2.3.1 and ran make check without problem, but I am having trouble installing several packages using gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-53) on Red Hat Enterprise Linux AS release 3 (Taroon Update 7) Kernel 2.4.21-40.ELsmp on an x86_64 Below are the messages from MCMCpack. Perhaps my systems are messed up? Paul Gilbert > install.packages("MCMCpack")
2011 Jul 29
2
R DDD fortran
Is there an easy way to compile a packages's fortran so that it has the information for ddd or gdb to follow the lines of the code? I seem to remember seeing something about this, but I cannot find it in Writing R Extensions. (I see about Valgrind, debugging a segfault, and some other tricks, but what I really want is to follow the fortran logic.) Thanks for any pointers, Paul
2011 Feb 03
1
S3 method for S4 object
I am trying to extend an S3 method to work with an S4 object as well as the S3 objects it works with, but UseMethod does not seem to recognize the S4 class and dispatches to the default method. Is this to be expected or should I be looking for an error in my code? If it is not an error in my code, is there an easy way to do this, or do I have to convert the generic to S4 and then make those
2010 Mar 05
2
CRAN nearly down?
Is CRAN having trouble or is it just me? (The web interface is very slow and install.packages() is timing out and giving me "service not available"). Paul ==================================================================================== La version française suit le texte anglais. ------------------------------------------------------------------------------------ This email
2011 May 06
3
fortan common block
Is it possible in R to call a fortran routine that sets variables in a common block and expect the values to persist when a call is made from R to a second routine that uses the common block? If not (as I suspect), is it possible to use a common block in a group of routines that are used together, for as long the routines do not return to R? Paul
2007 Aug 13
3
invert 160000x160000 matrix
Can R invert a 160000x160000 matrix with all positive numbers? Thanks a lot!