Displaying 20 results from an estimated 1300 matches similar to: "S4 package warning"
2010 Oct 26
1
S4 methods for rbind()
Hello.
I am trying to write an S4 method for rbind(). I have a class of objects
called 'mdm', and I want to be able to rbind() them to one another.
I do not want the method for rbind() to coerce anything to an mdm object.
I want rbind(x1,x2,x1,x2) to work as expected [ie rbind() should take any
number of arguments].
This is what I have so far:
setGeneric(".rbind_pair",
2009 Dec 03
1
S4 and head() problems
Hi
I am having difficulty defining an S4 method for head() and tail().
I can't quite provide minimal self-contained code
because the problem appears to require the whole corpus
of my package; and there also appears to be a difference
between sourcing the lines directly, and having them
installed in a package.
The lines in question (I think) are:
setClass("mdm",
2010 Nov 09
2
Help with Iterator
Dear Experts,
The following is my "Iterator". When I try to write a new function with
itel, I got error.
This is what I have:
> supDist<-function(x,y) return(max(abs(x-y)))
>
> myIterator <- function(xinit,f,data=NULL,eps=1e-6,itmax=5,verbose=FALSE) {
+ xold<-xinit
+ itel<-0
+ repeat {
+ xnew<-f(xold,data)
+ if (verbose) {
+ cat(
+
2019 Apr 22
1
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
Duncan that does indeed look to be the case. Many thanks!
In particular, tests/reg-tests-1d.R optionally loads the Matrix
namespace which allows the test to succeed. Compare:
~/R-rc_2019-04-21_r76409/bin/Rscript -e "options(warn=2);
library(Matrix); res <- findMethods('isSymmetric'); print('success')"
[1] "success"
versus
2007 Jul 22
1
Package design, placement of legacy functions
I have a function XOLD() from a nearly verbatim port of legacy
FORTRAN in a package. I have remplemented this function as XNEW()
using much cleaner native R and built-in functions of R. I have
switched the package to the XNEW(), but for historical reasons would
like to retain the XOLD() somewhere in the package directory
structure. An assertion through a README or other will point to
2019 Apr 21
2
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
Hello,
Most likely I'm doing something wrong, but am at a loss as to what the
issue is. I have a clean checkout of trunk here:
?? ~/svn/r-devel/R$ svn info
?? Path: .
?? Working Copy Root Path: /home/btyner/svn/r-devel/R
?? URL: https://svn.r-project.org/R/trunk
?? Relative URL: ^/trunk
?? Repository Root: https://svn.r-project.org/R
?? Repository UUID:
2009 Aug 18
1
Cisco IAD's
To Members,
I currently looking for someone who can configure Cisco IAD's Ie.. IAD 2431
And yes we are more than willing to pay for the service.
If interested please drop me an email mdm at openaccessinc.com<mailto:mdm at openaccessinc.com>
Michael DiMartino | Director of IT | Open Access, Inc.
115 Bi County Blvd | Farmingdale, NY 11735
631.227.1034| 631.694.6730 FAX |631.988.6060
2005 Sep 11
3
David Choo/eServices/eSpore is overseas
I will be out of the office starting 12/09/2005 and will not return until
16/09/2005.
Dear Sir / Mdm,
I'm currently on course and are not in office.
During this period of time, I have minimal access to internet and email
cccess. As such, I might not be able to reply to your queries promptly. I
apologise for the inconvenience caused.
In the meantime, for any technical assitance, please
2013 Aug 16
2
Maildirmake equiv?
Since I am using dovecot I do not have courier installed, but Courier had a very handy tool for making maildir folders called `maildirmake` which I used in some automated backup scripts. How do I duplicate maildirmake in dovecot?
for example:
#!/bin/bash
# v1.2a Testing for new dovecot install
# Archive mail from folders without [0-9]{4} Maildirs
# after they are 21 days old to a yearly folder
2010 Jul 30
3
simple table/matrix problem
Hi
Given three vectors
x <- c(fish=3, dogs=5, bats=2)
y <- c(dogs=1, hogs=3)
z <- c(bats=3, dogs=5)
How do I create a multi-way table like the following?
> out
x y z
bats 2 0 3
dogs 5 1 5
fish 3 0 0
hogs 0 3 0
('out' is a matrix).
See how the first line shows 'x' has 2 bats, 'y' has zero bats, and 'z'
has 3 bats
and so on for each
2010 May 21
1
S4 method defined but not used
Dear R developers,
I am having a slightly weird issue with a S4 method defined in my package adegenet 1.2-4, with R 2.11.0. As far as I know, the problem is new, and the code implementing the method has not changed for more than a year and worked well so far.
The problem is the following. I define, in the package, a method "[" for the S4 class 'genind'. The method's
2012 Feb 13
0
new package on CRAN: multivator
Dear list,
The new package 'multivator' is now available on CRAN. This presents
a multivariate generalization of the emulator package.
The corresponding JSS article is:
Robin K. S. Hankin (2012), "Introducing multivator: A Multivariate Emulator",
Journal of Statistical Software, 46(8), 1-20.
URL http://www.jstatsoft.org/v46/i08/
best wishes
Robin
--
Robin Hankin
2009 Jun 12
1
bundle deprecation
Hi
I read that bundles are to be deprecated in 2.10.
The BACCO bundle contains three packages
(emulator, calibrator, approximator) which I
am happy to unbundle.
But the 'BACCO' moniker has some considerable
cachet for me in terms of recognizability (eg
with grant-giving bodies), as it has become an umbrella
term for a whole bunch of related statistical
functionality of which the three
2009 Sep 08
5
sparse vectors
Hi
I deal with long vectors almost all of whose elements are zero.
Typically, the length will be ~5e7 with ~100 nonzero elements.
I want to deal with these objects using a sort of sparse
vector.
The problem is that I want to be able to 'add' two such
vectors.
Toy problem follows. Suppose I have two such objects, 'a' and 'b':
> a
$index
[1] 20 30 100000000
2016 May 05
2
Samba4 AD DNS -- AD Subdomain vs Clients accessing on different subdomain
Hello,
We have an issue we’ve been struggling with for quite some time since we rolled out 10 Samba4 domain controllers at our main office and all remote sites about 3 years ago.
Simplified Current Configuration:
2 DCs at main site with internal DNS using subdomain ad.companyname.com
2 BIND CentOS servers serving all intranet DNS requests — main zone: companyname.com
2 BIND CentOS servers
2009 Jan 22
1
pdf() and pch problems
Hi
R-2.8.1, Suse 11.1
I'm having problems with pdf(). In the following
transcript, file 'f.pdf' does not use the expected symbols for the plot.
It uses a 'q' letter instead of the open circle I get when
viewing the graphics window.
I also get the same under r47678.
Does anyone else get this?
le112:~/scratch/R-2.8.1% R --vanilla --quiet
>
2009 Jan 22
1
pdf() and pch problems
Hi
R-2.8.1, Suse 11.1
I'm having problems with pdf(). In the following
transcript, file 'f.pdf' does not use the expected symbols for the plot.
It uses a 'q' letter instead of the open circle I get when
viewing the graphics window.
I also get the same under r47678.
Does anyone else get this?
le112:~/scratch/R-2.8.1% R --vanilla --quiet
>
2010 Jun 29
3
table() of a factor
Hi
suppose I have a factor 'x':
> x <- as.factor(c(rep("a",3),"b","d"))
> table(x)
x
a b d
3 1 1
>
>
But this is not what I want because
I need to include the fact that the count of "c" is zero.
I can't just change the levels of x:
> levels(x) <- c("a","b","c","d")
>
2009 Jan 22
1
reshape() problems
Hi
I have a data frame with timeseries information like this:
year cell Q1 Q2 Q3 Q4
1940 1 1.2 1.4 1.4 1.9
1941 1 2.9 2.1 3.4 2.4
1942 1 2.7 3.2 1.5 2.6
1940 2 1.4 2.1 2.6 2.4
1941 2 2.4 1.4 1.4 3.4
1942 2 1.4 2.4 2.5 4.4
where the Qs mean 'quarter'. I want to extract from
2009 Oct 16
1
generalization of tabulate()
Hi
I want a generalization of tabulate() which works on rows of a matrix.
Suppose I have an integer matrix 'observation':
> observation
y1 y2 y3
1 4 0
1 4 0
2 0 3
4 1 0
0 5 0
0 1 4
2 0 3
Each row corresponds to a (multivariate) observation. Note that the
first two rows are identical: this means that data "c(1,4,0)" was
observed twice.
Now suppose I can list the sample