Displaying 20 results from an estimated 5000 matches similar to: "slot(obj, "nosuch") documentation question"
2017 Jun 06
2
surprisingly, S4 classes with a "dim" or "dimnames" slot are final (in the Java sense)
Hi,
It's nice to be able to define S4 classes with slots that correspond
to standard attributes:
setClass("A1", slots=c(names="character"))
setClass("A2", slots=c(dim="integer"))
setClass("A3", slots=c(dimnames="list"))
By doing this, one gets a few methods for free:
a1 <- new("A1", names=letters[1:3])
2017 Jun 06
1
surprisingly, S4 classes with a "dim" or "dimnames" slot are final (in the Java sense)
I've fixed this and will commit soon.
Disregard my dim<-() example; that behaves as expected (the class needs a
dim<-() method).
Michael
On Tue, Jun 6, 2017 at 5:16 AM, Michael Lawrence <michafla at gene.com> wrote:
> Thanks for the report. The issue is that one cannot set special attributes
> like names, dim, dimnames, etc on S4 objects. I was aready working on this
>
2005 Nov 18
3
Method for $
Dear R experts,
I have defined a class "myclass" and would like the slots to be extractable
not only by "@" but also by "$". I now try to write a method for "$" that
simply executes the request object at slotname, whenever someone calls
object$slotname for any object of class "myclass".
I don't manage to find out how I can provide this
2013 Feb 15
1
Iterating through slots of an S4 object
I want to loop through slots of an S4 object and am unsure how to do so
since the only way I can find to access them is individually in the form
'object@slotName'. I have guessed at a few possibilities which did not work
and I have read some S4 object tutorials and things but still unsuccessful.
I presume it is possible though?
Any help would be much appreciated,
Scott
[[alternative
2010 Apr 24
3
S4 Inheritance of environments
I looked through the documentation and the mailing lists and could not
find an answer to this. My apologies if it has already been answered.
If it has, a pointer to the relevant discussion would be greatly
appreciated.
Creating S4 classes containing environments exhibits unexpected
behavior/features.? These have a different in two ways:
1) slotName for the data: ".xData" instead of
2017 Jun 06
0
surprisingly, S4 classes with a "dim" or "dimnames" slot are final (in the Java sense)
Thanks for the report. The issue is that one cannot set special attributes
like names, dim, dimnames, etc on S4 objects. I was aready working on this
and will have a fix soon.
> a2 <- new("A2")
> dim(a2) <- c(2, 3)
Error in dim(a2) <- c(2, 3) : invalid first argument
On Mon, Jun 5, 2017 at 6:08 PM, Herv? Pag?s <hpages at fredhutch.org> wrote:
> Hi,
>
>
2009 Jun 18
1
validObject throws non-caught error when slot doesn't exist
I have been retooling an S4 class definition to include another slot and
have found that the methods::validObject function (defined in
methods/R/SClasses.R) in R-devel throws an error that isn't caught
internally (and thus not controllable by 'test' argument) when
retrieving a non-existent slot. The offending line of code is shown below:
> validObject
function (object, test =
2010 Feb 08
1
using setMethod or setGeneric to change S4 accessor symbol from @ to $
I created some S4 objects that are essentially data frame objects. The S4
object definitions were necessary to verify data integrity and force a
standardized data format. I am, however, finding myself redefining all the
typical generic functions so that I can still manipulate my S4 objects as if
they were data frames ... I have used setMethod to set methods for "subset",
2009 Aug 30
1
Trying to rename spatial pts data frame slot that isn't a slot()
Dear List,
I am analyzing the home range area of fish and seem to have lost the individuals ID names during my manipulations, and can't find out how to rename them. I calculated the MCP of the fish using mcp() in Adehabitat. MCP's were converted to spatial points data frame and exported to qGIS for manipulations. At this point the ID names were lost. I brought the manipulated
2008 Nov 20
1
How to convert S4 class slots into data.frame or how to assign variables of type 'Date'
Hi,
I created a class (S4) with some slots like value, date, description
(it's actually a financial transaction class). Now I need a method to
convert this class forth and back into a single row data.frame, where
every slots represents a column. This method looks at the moment like
this:
> setMethod("as.data.frame", "Transaction",
function(x, row.names =
2004 Oct 07
1
library/utils/man/utils.RD.gz : Nosuch file or directory
R-help
I have installed R 2.0.0 ( Windows) on my machine and had several
'crashes' while working on it.
I have reinstalled a couple of times and still got strange behaviour
from time to time(screen goes white and no prompt is printed out,,,)
Last time I have reinstalled I checked the md5sum.txt (md5sum output
for the setup program and went O.K) and also Md5 from which I paste a
piece of
2020 Jun 02
2
Code coverage for member functions that are defined inside the class
Hello,
We have a user that wants to get the code coverage report for his library without turning on instrumentation for the library clients or change how they are built (only the library is instrumented). It seems like the inline member functions defined in headers are not instrumented in this case because the clients are not instrumented. The library itself does not have a copy of the inline
2012 Nov 20
1
FOOBAR\usuario1 windows explorer hungs forever while accessing shared dirs in LAPAZ\comp1 (interdomain trust relationships)
Hi all
I have two samba PDC installed according to these specifications:
domain FOOBAR with pdc server name: BAR (ip 192.168.1.1)
opensuse 11.1
samba-3.5.6-15.1
openldap2-2.4.12-5.6.1
smbldap-tools-0.9.5-25.1
A winxp called USUARIO1 joined to the FOOBAR domain (ip 192.168.1.100)
domain LAPAZ with pdc server name: SERVERLPZ (ip 192.168.10.4)
openSUSE 12.2
samba-3.6.7-48.12.1.i586
2008 Jun 05
1
doc buglet / as.Date method
Under Details section for as.Date:
as.Date will accept numeric data (the number of days
since an epoch), but only is origin is supplied.
^^
should be "if"
R version 2.7.0 Patched (2008-06-04 r45830)
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2016 Apr 18
7
LTO and intrinsics mangling
In the current mangling scheme for overloaded intrinsics we include overloaded type names in the intrinsic name. For example:
%struct.foobar = type { i32 }
declare <4 x %struct.foobar*> @llvm.masked.load.v4p0struct.foobar(<4 x %struct.foobar*>*, i32, <4 x i1>, <4 x %struct.foobar*>)
Verifier checks that an overloaded intrinsic name matches with its signature.
When
1998 Apr 08
1
SAMBA digest 1648
>>"foobar." Win95 keeps sending over it's username as the person who logged
>>in to that computer, or as the computer's machine name... and samba uses
>>that. I'd rather if they just typed in "foobar" they'd be in foobar's
>>account. Can this be done?
>Establish a group foobar in /etc/group with all the users that shall be
2019 Feb 01
2
group membership inconsistency on AD domain member
Hi,
I've been running a samba server with winbind (CentOS 7) as a member of
an AD Domain (Windows 2012 R2) for several months without a problem.
"Suddenly" I'm seeing the problem that the membership in newly created
AD groups isn't correctly visible for some users on the samba server or
only after some indefinite amount of time. I'm looking simply at the
output of
2013 Apr 23
1
Verbose output from R CMD check
I've been developing a package called foobar for a couple of years now.
It has evolved through various versions, but has always contained
compiled C code. Recently, R CMD check has started generating the
following message
[START QUOTE]
R CMD check foobar_1.7.5.tar.gz
* using log directory ?/home/david/foobar/package/foobar.Rcheck?
* using R version 2.15.2 (2012-10-26)
* using platform:
2012 Dec 07
6
Poll for thoughts on hierifying modules and OS default differences
Hello lovelies,
Our team is deliberating a few different options for the hierification of our modules; and wanted to poll the collective genius before making our decision.
As we all know, there are certain attributes of a package which are, by default, consistent on an OS... say, the name of a package.....
class foobar {
include foobar::params
$package = $foobar::params::package
Package
2019 Apr 10
2
failed: read(/var/run/dovecot/dns-client)
===
dsync(foobar at example.com): Error: imapc(foobar.example.com:993): dns_lookup(foobar.example.com) failed: read(/var/run/dovecot/dns-client) failed: read(size=512) failed: Connection reset by peer
dsync(foobar at example.com): Error: Failed to initialize user: imapc: Login to foobar.example.com failed: Disconnected from server
===
Initially I thought "oh no, not another AppArmor