Displaying 20 results from an estimated 10000 matches similar to: "R5 multiple inheritance"
2011 Feb 27
1
Database abstraction
Hi all -
I've been working on a lite ORM and database abstraction package for R.
Formatting complex queries by hand has always been an error-prone hassle, so
I've tried to do away with that as much as possible, instead, using R
objects to represent elements of a database system (statements, clauses,
operators, functions, fields, tables, etc.). R5 classes have made the
development of this
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 =
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
2020 Sep 23
2
Incorrect Cortex-R4/R4F/R5 ProcessorModel in ARM.td
In ARM.td, I see that the ProcessorModel for cortex-r4, cortex-r4f, and cortex-r5 (as well as r7 and r8) is based on "CortexA8Model", which seems incorrect. When this was added in 2015, there were also comments associated with this configuration, such as "// FIXME: R5 has currently the same ProcessorModel as A8" (later removed). The processor model for Cortex-r52 appears to
2004 May 12
1
wine and Lotus Notes R5
I have installed Lotus Notes r5 on a Debian box via wine, and I did this
by "wine /path to setup.exe" and now when I execute "wine
/pathtonotes.exe or /pathtonlnotes.exe" a splash screen for notes r5
comes up and goes away and wine reports it as below:
Wine exited with a successful status
Debian kernel 2.4.25
wine version 0.0.20040309-1
notes version 5.0.10
Jim
2014 Feb 01
1
Running examples with R5 constructor from package failing
I am having an issue with reference classes (R5) in a package I am developing. They have both been illustrated in the `roxygentest` package I've got hosted on Github [1].?
When I run `R CMD check .` on the source directory of my package I am told that:
> Error: could not find function "Blob"
However, when I install and load the package, I can successfully run the command in the
2009 Apr 26
2
Some extensions to class inheritance and method selection
Changes were committed today to the r-devel version of R to make S4 and
S3 classes (and abnormal object types such as "environment") work
together more consistently.
Basically, S4 classes can now contain any S3 class or object type, and
should now inherit S3 methods for these. Also, the main practical
problem with defining S3 methods for other S4 classes (namely, that S4
2011 Jul 07
1
Simple inheritance check fails (integer from numeric)
Dear list,
In a function, I don't care if my input has class 'integer' or
'numeric', so I wanted to use 'inherits()' to control for that.
However, this function tells me that an actual object of class 'integer'
does not inherit from class 'numeric'. The class def of 'integer' does
state 'numeric' as one of the superclasses. Isn't
2012 Jun 25
1
Very simple question R5 setRefClass and Initialize
Hi,
New to this list, and glad I found R5 which si a great improvement to R
for my work.
Something seems odd anyway, when I do a setRefClass, the initialize
method execute at the class definition.
I would like it to execute only when an instance is created.
How can I do that? I found no way to test if the code execution is when
the class definition happens or when a $new instance is created.
2002 Jun 20
2
using lotusnotes r5 client on redhat 7.3 with wine 20020411
i have a problem with wine, version 20020411
and lotus notes r5.
i'm starting wine notes.exe and the install routine
is going on. after input user - id and authentification on id,
the wine session halted by "please give me your timezone".
but i can't select a timezone :-))
i can't leave this window, i must skip on terminal the wine session
with ctrl+c.
is this a well-known
2016 May 19
0
ati fglrx vs amdgpu absolutely mad on R5 m255 vs IRIS P520
Hello guys,
native drivers are mad for my laptop:
Downgrade to native centos kernel vmlinuz-3.10.0-327.18.2.el7.x86_64.
fglrx glxgears around ~800 in 5 seconds my test with amdgpu kernel 4.6
(intel vs amdgpu):
[andy at localhost ~]$ cat /proc/version
Linux version 4.6.0-1.el7.centos.x86_64 (andy at localhost.localdomain)
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #1 SMP Thu May 19
2009 Jan 27
2
Inherited Methods in r-devel (for package maintainers mainly)
A recently committed revison of R-devel (47740) has introduced a new
mechanism for ordering superclasses consistently, with related changes
for selecting inherited methods.
As part of the process, a function testInheritedMethods has been
introduced that examines method selection for the relevant subclasses
and reports ambiguities.
Maintainers of packages that have methods involving multiple
2006 Aug 17
0
single-table inheritance and select
I''m getting some weirdness trying to use a select widget to choose
the type from a collection of three objects sharing a database table
via single-table inheritance (STI). I''d be grateful for any advice on
whether it''s a bug or a feature, if a feature why and how I can more
easily do what I''m trying to do.
So I have the usual STI setup, with a
2011 Feb 10
3
Finding length of unique numbers in a vector
Hello there, would you please look into my codes? Here I have following:
> set.seed(100)
> samp <- sample(c(1,-1,0), 20, replace=T); samp
[1] 1 1 -1 1 -1 -1 0 -1 -1 1 -1 0 1 -1 0 0 1 -1 -1 0
Here I want to calculate the length of each unique number for above vector.
How can I do that?
Thanks in advance
[[alternative HTML version deleted]]
2011 Mar 10
3
A question about data frame
A very simple question. With a data frame like this:
> n = c(2, 3, 5)
> s = c("aa", "bb", "cc")
> df = data.frame(n, s)
I want df$s[1] or df[1,2], but how can I get rid of the extra line in
the output about the factor levels:
> df$s[1]
[1] aa
Levels: aa bb cc
Thanks,
Gang
2012 Jun 14
0
Reference class inheritance using matrix/array class
Hi,
I'm investigating converting some S4 classes to reference classes
and have a question about inheritance. The primary data structure for
the original S4 class is a 3-d array. Using the "contains" parameter
when defining the class permits me to inherit all of the
array-related methods. Of particular utility for me is the ability to
access the array via [] indexing. It all works
2009 Aug 17
2
S4: inheritance of validity methods?
Dear Developers,
In current implementation of validity method, objects are first coerced to
superclass (slots are striped). Thus, it is not possible to write validity
method which would perform some checks on children slots.
Say, I want to check if number of slots in a class is equal to "n":
setClass("A", representation(a="numeric", n="integer"),
2008 Oct 06
2
Filter inheritance
can anyone tell me how before filter can call the private method audit
which from the parent class ?
because the bank controller has a private method called audit, this one
should not be inheritance by VaultController, so how the before_filter
use the private method audit ?
if the child class can use the parent class private method . does it
break encapsulation ? does the private has any sense
2011 Mar 09
2
SQLDF - Submitting Queries with R Objects as Columns
Fellow R programmers,
I'd like to submit SQLDF statements with R objects as column names.
For example, I want to assign "X" to "var1" (var1<-"X") and then refer to
"var1" in the SQLDF statement. SQLDF needs to understand that when I
reference "var1", it should look for "X" in the dataframe.
This is necessary because my SQLDF
2016 Jul 29
0
strange behavior in 'inherits' check for loaded S4 object
I have a small idea as to what's going on now; at least, why exporting
the class resolves this particular issue.
Firstly, when an S4 class is not exported, the associated
'.__C__<class>' object is not made part of the package environment.
For example, I see:
> getAnywhere(".__C__SubMatrix")
A single object matching '.__C__SubMatrix' was found
It