similar to: Reference class inheritance using matrix/array class

Displaying 20 results from an estimated 1000 matches similar to: "Reference class inheritance using matrix/array class"

2010 Apr 25
0
S4 generic and method arguments -- "expanded signature"
Hello R-List, ** This e-mail was initially bounced. Please forgive any duplicates.** I'm creating a new generic function and 3 associated methods, in which each of the methods only needs a subset of the arguments specified in the generic. So, I create the generic like so (with the signature defaulting to all of the args) ... setGeneric( name="myFunction", def =
2009 Aug 13
1
segfault when unloading a shared library
Hi All, I'm still actively researching this problem (reading R-ext manual), but I hoped that I might be able to get some additional insight from the list given that I'm fairly new at writing R extension code. Problem: I have some fairly simple code (.Call interface) that makes a call to another shared library, which, in turn, calls routines in an HDF5 shared library. The good news
2007 Oct 14
1
ggplot2 geom_hline error
Hello R-List I've run into a minor problem with ggplot2. In particular, I get an error message when trying to plot a horizonal line through zero. Here is what I do: plt.df <- subset(xfm.df, select=c(stage, subj, tX)) plt <- ggplot(pp.df, aes(x=stage, y=tX, group=subj)) + geom_line() plt plt <- plt + geom_hline(intercept=0) plt The first plot yields a most lovely graph.
2009 Nov 19
0
Passing filenames to the getopt package
Hi all, I've finally started to use Rscript for my statistical scripting needs, and find I'm being blocked by what must be a very simple problem. Specifically, the command lines for my scripts usually contain: (1) the script name, (2) one or more options and their arguments, and finally, (3) one or more filenames to be processed. While the "getopt" package seems to provide
2012 Jan 18
1
png cairo device problems on Mac 10.6.8
Hi all, I have been having problems generating png files on a Mac running OS X 10.6.8. Here's a simple example > png("foo.png", type = "cairo"); plot(1:10); dev.off(); null device 1 libpng warning: Application built with libpng-1.2.26 but running with 1.5.2 The resultant file is of size 0 Kb. Is this the proper place to report this issue? Or should
2012 Jan 09
2
[R] fix and edit don't work: unable to open X Input
(moved from R-help) I tried this on Ubuntu with R-2.14.1 built from source, and I do not get the segfault problem. (I don't at the moment have a debian binary R, or I would confirm whether I get the segfault problem.) My sessioninfo() is reporting additional information about namespace imports: > library(ggplot2) Loading required package: reshape Loading required package: plyr
2010 Nov 21
1
reference classes: question on inheritance
Dear list, I have a reference class which should act as a "generic" superclass for other classes. I've read the respective section at ?setRefClass and put the name of the superclass to the 'contains' argument of an example subclass (see class defs below). Classnames are set in a way that shouldn't result in collation issues (virtual def sourced before superclass def
2012 Nov 08
1
Dabbling with R5 setRefClass - Inheritance problems
Hello, I wrote a class like so: > rcfdpsuperclass <- setRefClass( > Class="rcfdpsuperclass", > fields = list( > RcfpdVersion = "character"), > methods = list( > initialize = function(){ > 'Populates fields with defaults and lock as appropriate' > initFields( > RcfpdVersion =
2009 Jan 28
2
For Whom the Gaza Bell Tolls -- Part 1 and 2 -- Obama’s Mideast Jewish Wet Dream Team
For Whom the Gaza Bell Tolls -- Part 1 By Edmund Connelly for The Occidental Observer January 16, 2008 ?The Israelis can kill whomever they want whenever they want.? --Paul Craig Roberts I sometimes think that it?s pointless for Americans to talk much about recent events in Gaza because we know how it will play out ? America will do absolutely nothing to interfere with the ongoing massacre.
2009 Jan 28
2
For Whom the Gaza Bell Tolls -- Part 1 and 2 -- Obama’s Mideast Jewish Wet Dream Team
For Whom the Gaza Bell Tolls -- Part 1 By Edmund Connelly for The Occidental Observer January 16, 2008 ?The Israelis can kill whomever they want whenever they want.? --Paul Craig Roberts I sometimes think that it?s pointless for Americans to talk much about recent events in Gaza because we know how it will play out ? America will do absolutely nothing to interfere with the ongoing massacre.
2011 Dec 08
1
Reference class finalize() fails with 'attempt to apply non-function'
This bug appears intermittently in R CMD check when reference classes have finalize methods. The problem is that garbage collection can be run after the methods package is no longer available. It affects (periodically) the Bioconductor AnnotationDbi package as well as packages that contain Rcpp classes. To reproduce: library(methods) a = setRefClass("A",
2011 Apr 24
0
should I use setRefClass() ?
Hello, I am somewhat new to R programming and a novice C++ programmer. I'd like to know if I should use setRefClass() to manage objects, functions, and data in a very large program I am attempting to code. See: http://stat.ethz.ch/R-manual/R-devel/library/methods/html/refClass.html I like the referential class structure that C++ provides and R seems to provides via setRefClass(). Mainly
2007 Aug 16
0
Customizing locale settings in CentOS-4.5
I am trying to determine how to customize the date and time display of system utilities and user programs using the locale settings. What I really want is some sort of utility program that does the same thing for CentOS as the Regions Settings Control Panel app. for MicroSoft Windows accomplishes, but I have no hope of seeing that. I have traced the login locale processing through /etc/profile
2011 Jun 03
2
Bug or feature: using "ANY" as a generic field class (was: '[R] Is there a (virtual) class that all R objects inherit from?)
Dear list, I was wondering if you could help me out in clarifying something: Is it possible to use class "ANY" in slots/fields of formal classes if you a) do not want to restrict valid classes of that field and b) if you are making explicit use of class inheritance? It seems to work in simple scenarios but produces errors when class inheritance comes into play. So I was
2019 Jan 14
0
Setting 'unix charset' kills the samba share
On Mon, 14 Jan 2019 16:27:04 -0500 Gilbert Soucy <gsoucy at 36pix.com> wrote: > Yes, I have tried testparam. All is OK . Note that I can write > anything for unix charset and testparm does not complain. > > Load smb config files from /etc/samba/smb.conf > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit > (16384) Processing section
2010 Jan 25
0
Rscript is not loading some of one of the standard R packages
Hi, I have a script I can run step by step through the R interpreter and it works fine. I then run as a shell script with Rscript and it fails. The error message comes when I am creating a model matrix with model.matrix.default(). Error in `contrasts<-`(`*tmp*`, value = "contr.Treatment") : could not find function "is" Calls: model.matrix.default ->
2012 Dec 15
3
Cannot build custom locale with utf-8 charset
I am trying, without success, to compile a custom locale for the utf-8 character set. I have issued this command: localedef --no-archive -f UTF-8 -i /usr/share/i18n/locales/en_CA at yyyy-mmm-dd en_CA at yyyy-mmm-dd.utf8 which produces the requisite files without reporting an error but which none-the-less insists on using the iso-8859-1 charset: LC_ALL=en_CA at yyyy-mm-dd locale charmap
2011 May 04
1
General "nil" reference class object
Dear John and others, I've been wondering about whether there's any way to indicate a "nil" reference class object, which will represent "no value", and be tested for, but not fail the internal type checking. NULL is the obvious choice (or seems so to me), but can only be used if an explicit class union is created: > Foo <- setRefClass("Foo") > Bar
2011 Oct 31
1
Question about copying reference objects using the initialize method
Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$methods(initialize = function(...){ ? value <<- 1 ? callSuper(...) }) newObject = myClass$new() newObject$value = 2 copyObject =
2007 Jun 27
1
error message from lmer
Hi, I've begun to use the lme4 package, rather than nlme, for more flexibility during modelling, and running the examples in lmer I receive this error message: ---<---------------cut here---------------start-------------->--- R> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)) Error in printMer(object) : no slot of name "status" for this object of class