Displaying 20 results from an estimated 800 matches similar to: "Seeking guidance in package creation when it contains s4 class"
2015 May 12
2
Unexpected failure when calling new() with unnamed arg and
Hi,
The man page for new() suggests that if 'a' is an object with slots
"slot1" and "slot2" and C is a class that extends the class of 'a',
then the 2 following calls should be equivalent:
new("C", a, ...)
new("C", slot1=a at slot1, slot2=a at slot2, ...)
This is generally the case but I just ran into a situation where it's
not.
2015 May 13
2
Unexpected failure when calling new() with unnamed arg and
Thanks Martin for looking into this. H.
On 05/13/2015 03:57 AM, Martin Maechler wrote:
>>>>>> Herv? Pag?s <hpages at fredhutch.org>
>>>>>> on Tue, 12 May 2015 15:18:42 -0700 writes:
>
>> Hi,
>
>> The man page for new() suggests that if 'a' is an object with slots
>> "slot1" and "slot2" and C is a
2015 Oct 08
1
Unexpected failure when calling new() with unnamed arg and
>>>>> Joshua Wiley <jwiley.psych at gmail.com>
>>>>> on Thu, 8 Oct 2015 12:19:16 +1100 writes:
> Hi, I realize this is an old thread, but just wondering
> whether a conclusion was ever reached on this issue? I'm
> using formula(NULL) but it would be nice if default
> initialization worked for formula classes as well.
Well,
2011 Jun 06
1
Seeking help to define method for show() for an S4 object
Dear all, I have created a new S4 class with name "MyClass". Please see
below for it's definition. Now I want to create a
method for the show() function for this class. In defining this method, what
I want is, once user would like see an object of this class
some values will be displayed. Then R will ask for **press Enter**. Once
user presses enter then, remaining values will be
2011 Feb 01
1
Help need to define method of an s4 class
I need some help in defining a "print" method for my new S4 class
definition. So fer I have worked like this:
setClass("MyClass", sealed=F, representation(slot1 = "list", #create a
new class
slot2 = "vector",
slot3 = "vector",
slot4 = "vector"))
setMethod("print",
2008 Sep 09
1
building a package that contains S4 classes and methods
Hello R users,
I am trying to make a my first package and I get an error that I can
understand. The package is build out of three files (one for functions, 1
for s4 classes and 1 for s4 methods).
Once I source them I run
package.skeleton( name="TDC" )
within a R session and I get
Creating directories ...
Creating DESCRIPTION ...
Creating Read-and-delete-me ...
Saving functions and
2009 May 29
1
Problem making a package using S4 objects.
Hello.
I've developed an algorithm in R which I need to package.
The implementation uses S4 objects and it's divided in 5 files.
Everything is working fine when I load the files into the R console but when
I try to make a package I get an error that I don't quite understand.
Here's what I do:
*1.* in R console, I do and get:
> package.skeleton(name='remora')
Creating
2008 Mar 30
1
package.skeleton.S4
Hi the devel list.
I am adapting the package.skeleton to S4 classes and methods
I would have been very proud to post a new working function on this list.
Unfortunately, I do not manage to solve all the problems. Mainly
- sys.source does not compile a file with setClass
- dumpMethod does not exists yet
In the following code, thise two problems are notified by a line
#################
Still
2004 Sep 28
1
ZT_CHANCONFIG failed on channel 1
I get this error no matter what I do. I've tried switching to different
locations on the TDM400p to no avail.
I've got the card setup with the green module in slot1 and red in
slot2. My config files are exactly like the "Configure Dev-Kit PCI
(TDM11B)" example.
http://www.digium.com/index.php?menu=configuration#TDM11B
When I run ztcfg -v, I get:
2 channels configured.
2015 May 13
0
Unexpected failure when calling new() with unnamed arg and
>>>>> Herv? Pag?s <hpages at fredhutch.org>
>>>>> on Tue, 12 May 2015 15:18:42 -0700 writes:
> Hi,
> The man page for new() suggests that if 'a' is an object with slots
> "slot1" and "slot2" and C is a class that extends the class of 'a',
> then the 2 following calls should be equivalent:
>
2015 Oct 08
0
Unexpected failure when calling new() with unnamed arg and
Hi,
I realize this is an old thread, but just wondering whether a conclusion
was ever reached on this issue? I'm using formula(NULL) but it would be
nice if default initialization worked for formula classes as well.
Cheers,
Josh
On Thu, May 14, 2015 at 8:13 AM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> Thanks Martin for looking into this. H.
>
>
> On 05/13/2015
2015 Nov 23
3
Hexagon and choosing of slots
I'm curious how does hexagon hardware decide which slot to use for a given
instruction? Is there special hardware to make that decision? I'm asking
because I didn't see any information about which slot to use for a given
packet. Is it even possible to pass this kind of information through
assembly? Say hardware sees a packet and the packet tells it which slot to
use.
I would greatly
2005 Jan 15
0
ADSI unlock codes
Program your locked ADSI phone not by unlocking it but by using the
feature slot FDN download descriptors of ADSI SEC security code telco
provider lock number key from database list. ch33s3
First reset phone. Set clock to Jan 1 12:00AM (options-2?). exit to
main screen. press options, (mute/flash/speaker/?) until you see
firmware version. press # to reset. google more info, bam ch33s3d
;
2005 Nov 09
1
smarter sparse files?
Question: Does ext2/3 (or any other filesystem you know of) support
a system call turning blocks within a file back into "sparse zeros",
i.e. giving the blocks back to the filesystem?
Background:
I am working on a slotted fileformat where internal fragmentation
occurs. One such occurrence is growth of the data in a given slot,
which currently requires me to handle the
2015 Nov 24
2
Hexagon and choosing of slots
> On Hexagon, the slot assignment is determined by the layout of the
> instructions in memory. The order of the instructions in the packet does
> not matter either in the IR, nor in the .s file, but it does when the
> packet is encoded into the actual machine code. In LLVM, the Hexagon
> shuffler orders the instructions just prior to encoding.
>
> Specifically, the
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
2009 Jan 02
1
"registering" a generic method for a class
Sorry in advance if this is too simple a question, but I'm stuck with
some odd behavior and I can't find the text to rid myself of this
(admittedly somewhat trivial) problem. Note that I've done generic
programming with S3 "objects" in the past, but I've never really
dabbled in creating S4 objects until now.
So, I've created a new S4 class, call it
2009 May 27
2
Object-oriented programming in R
Dear R-users,
I have very recently started learning about object-oriented programming
in R. I am far from being an expert in programming, although I do have
an elementary C++ background.
Please take a look at these lines of code.
> some.data = data.frame(V1 = 1:5, V2 = 6:10) ;
> p.plot = ggplot(data=some.data,aes(x=V1, y=V2)) ;
> class(p.plot) ;
> [1] "ggplot"
My
2011 Feb 22
1
S3 classes and building a package
Hi List!
Suppose I have the following, please:
> setClass("buzz",representation(x="numeric"),S3methods=TRUE)
[1] "buzz"
> x <- rnorm(10)
> class(x) <- "buzz"
> plot.buzz <- function(x,y,...) {
+ plot.default(x,type="l",col="blue")
+ }
> f <- function(x) {
+ return(x^2)
+ }
>
2015 Nov 16
3
DFAPacketizer, Scheduling and LoadLatency
I'm unclear how does DFAPacketizer and the scheduler know a given
instruction is a load.
Here is what I'm talking about
Let's assume my VLIW target is described as follows:
def MyTargetItineraries :
ProcessorItineraries<[Slot0, Slot1], [], [
..............................
InstrItinData<RI, [InstrStage<1, [Slot0, Slot1]>]>,