Displaying 18 results from an estimated 18 matches for "genericfunctions".
Did you mean:
genericfunction
2005 Nov 14
1
Tidiest way of modifying S4 classes?
I wish to make modifications to the plot.pedigree function in the
kinship package. My attempts to contact the maintainer have been
unsuccessful, but my question is general, so specifics of the kinship
package might not be an issue.
My first attempt was to make a new function Plot.pedigree in the
.GlobalEnv which mostly achieved what I wanted to. However, I'm sure
that's not the tidiest
2004 Jun 26
1
S4 group "Math", "getGroupMembers", "genericForPrimitive"
Hi,
I found the following on Windows 2000/NT
R Version 1.9.1 (2004-06-21) (also Version 1.9.0):
The S4 group "Math" doesn't work as documented; i.e., "log", "log10",
"gamma" and "lgamma" are included
in the documentation but don't work. See example code below.
Moreover, what about 'genericForPrimitive' which is used
in
2012 Aug 22
1
loading both RPostgreSQL and RSQLite leads to problems
hello,
if i load the RSQLite package in addition to the RPostgreSQL package,
i get various errors when trying to use RPostgreSQL functions. here is
an example transcript showing one such error:
==========================================================
R version 2.15.0 (2012-03-30)
[...]
> packageVersion('RPostgreSQL')
[1] 0.3.2
> packageVersion('RSQLite')
[1] 0.11.1
2012 Apr 05
1
issue with base:::namespaceImportMethods
Hi,
I've noticed an issue with S4 methods and namespaces which only arises in
particular, difficult to reproduce configurations. One example is the ggbio
package in Bioconductor, which currently emits these warnings when its
namespace is loaded:
----------------------
library(ggbio)
Loading required package: ggplot2
Attaching package: ‘ggbio’
The following object(s) are masked from
2013 Jan 23
3
Pasting a list of parameters into a function
I need to repeat a function many times, with differing parameters held
constant across iterations. To accomplish this, I would like to create a
list (or vector) of parameters, and then insert that list into the function.
For example:
q<-("l,a,b,s")
genericfunction<-function(q){
}
######
The equivalent code would of course be
genericfunction<-function(l,a,b,s){
}
Any help
2003 Jul 09
2
Packages, generics, S3 and S4
My question has two parts.
The first is with regard to the frame or environment in which generic
functions are defined in packages. It seems as though they are defined
(i.e. exist as objects) in frame 1, even when defined in a package.
The following is a short example:
setClass("track",representation(x="numeric",y="numeric"))
plotTrack <- function(x,y,...)
2014 Nov 25
0
problem with setGroupGeneric from package methods
Hi,
There seems to be a problem with setGroupGeneric() from package 'methods'. The symptoms are somewhat erratic, in the sense that small changes may lead to any of the following behaviours.
1.Package works without problems on Windows and installs on Linux but gives error when loaded with library().
2.Package installs on both systems and gives error when loaded on any of them.
3.
2019 Sep 16
1
Error: package or namespace load failed for ‘utils
>>>>> Laurent Gautier
>>>>> on Sun, 15 Sep 2019 15:01:09 -0400 writes:
> In case a search engine leads someone with the same issue
> here, I am documenting the point I reached:
> I can reproduce the issue with a small example when
> forcing R to not load any package at startup time (using
> an Renviron file): ``` package <-
2006 Sep 04
1
setMethod("Summary")
...switch(.Generic,
max = .Brob.max(...),
stop(paste(.Generic, "not implemented yet "))
)
}
)
but this gives an error from conformMethod().
[I've left the arguments to signature() unnamed because ?
GenericFunctions
says
A signature is
a named or unnamed vector of character strings. If named,
the names must be formal argument names for the generic
function. If 'signature' is unnamed, the default is to use
the first 'length(signature)' for...
2013 Aug 24
2
Correct NAMESPACE approach when writing an S3 method for a generic in another package
Dear List,
In one of my packages I have an S3 method for the plot3d generic
function from package rgl. I am trying to streamline my Depends
entries but don't know how to have
plot3d(foo)
in the examples section for the plot3d method in my package, without
rgl being in Depends.
Note that I importFrom(rgl, plotd3d) and register my S3 method via
S3Method() in the NAMESPACE.
If rgl is not in
2019 Sep 08
6
Error: package or namespace load failed for ‘utils
Hi,
When starting an embedded R I encounter the following issue under certain
conditions:
```
Error: package or namespace load failed for ?utils? in if (.identC(class1,
class2) || .identC(class2, "ANY")) TRUE else {:
missing value where TRUE/FALSE needed
```
(more such errors for grDevices, graphics, and stats)
And in the end:
```
Warning messages:
1: package ?utils? in
2006 Jan 03
1
lmer error message
Dear All,
I have the following error message when I fitted lmer to a binary data with the "AGQ" option:
Error in family$mu.eta(eta) : NAs are not allowed in subscripted assignments
In addition: Warning message:
IRLS iterations for PQL did not converge
Any help?
Thanks in advance,
Abderrahim
[[alternative HTML version deleted]]
2010 Feb 08
2
Error on start R in server
Hello all,
(Thank for your reply)
I have a web-application in Apache Tomcat, when i start R in this
application,
I used packe RSJava
Code
ROmegahatInterpreter interp;
String [] rargs = {"--no-save"};
REvaluator e;
interp = new ROmegahatInterpreter (
ROmegahatInterpreter.fixArgs(rargs),false );
e =new REvaluator ();
Errors
================
R version 2.10.1 (2009-12-14)
2003 Jul 03
1
S4 method and S3 method with same name: potentially dangerous?
Dear list,
yet another question on S4 method behaviour or rather its side effects:
Consider the following example (see below) where a new S4 method 'predict' is
defined which by doing so makes 'predict' a S4 standardGeneric.
It works and simple test examples run but I'm cautious whether this is a 'silly'
thing to do.
Is this a dangerous thing to do, already known to
2003 May 30
3
Missing 'getGroupMembers()'
Hi,
I'm trying to write a method such that my own classes can be used with the
groups like "Summary" and "Math", but when I tried to look for examples or
just wanted to get an idea of which functions are the members of a group, I
found out that the function "getGroupMembers" is not present... I couldn't
find an alternative function, if there is one. Does
2018 Apr 23
0
R 3.5.0 is released
The build system rolled up R-3.5.0.tar.gz (codename "Joy in Playing") this morning.
The list below details the changes in this release.
You can get the source code from
http://cran.r-project.org/src/base/R-3/R-3.5.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you.
Binaries for various platforms will appear in due course.
For the R Core Team,
Peter Dalgaard
2018 Apr 23
0
R 3.5.0 is released
The build system rolled up R-3.5.0.tar.gz (codename "Joy in Playing") this morning.
The list below details the changes in this release.
You can get the source code from
http://cran.r-project.org/src/base/R-3/R-3.5.0.tar.gz
or wait for it to be mirrored at a CRAN site nearer to you.
Binaries for various platforms will appear in due course.
For the R Core Team,
Peter Dalgaard
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...xample
BasicClasses text html latex
BasicFunctions text html latex
Classes text html latex
EmptyMethodsList-class text html latex
EnvironmentClass text html latex
GenericFunctions text html latex
LanguageClasses text html latex
LinearMethodsList-class text html latex
MethodDefinition-class text html latex
MethodSupport text html latex
MethodWithNext-class...