Displaying 20 results from an estimated 1000 matches similar to: "improved methods error"
2006 Nov 05
1
lme4 install error
Dear all,
I'm trying to install lme4 (after having installed R 2.4.0 from source, and
having installed the latest Matrix package). lme4 fails with the following
message:
pedigree.o definition of _lme4_xSym in section (__DATA,__common)
pedigree.o definition of _lme4_ySym in section (__DATA,__common)
make: *** [lme4.so] Error 1
ERROR: compilation failed for package 'lme4'
** Removing
2010 Feb 06
1
Posting an 'S4-creating Package Problem'...
Hello R-Team,
May you help me to post a 'S4-creating Package Problem'?
Thanks already now for supporting.
The problem sounds like:
Hello R forum,
while compiling my R-package these 'Warnings' occur:
...
Warnung in matchSignature(signature, fdef, where) :
in the method signature for function "plot" no definition for class:
"prediction"
Warnung in
2004 Sep 09
1
Confused about loading other packages from a package
In my package, I create a new method for plot with the following signature:
setMethod("plot", signature(x="marrayNorm", y="formula"), plot.ma)
where marrayNorm is a class defined in the marray package. After
building and installing my package, I get the following warnings when
I load my package (with library(maVis)):
Warning messages:
1: In the method signature
2012 Mar 15
1
methods::trace fails when signature specified
With
> R.version.string
[1] "R version 2.15.0 alpha (2012-03-14 r58748)"
trying to trace a method using the 'signature' argument fails rather
than enabling the trace:
> trace(initialize, signature="ANY")
Error in matchSignature(signature, fdef, where) :
trying to match a method signature of class ?signature?; expects a
list or a character vector
--
2010 Mar 22
1
Some more help on S4 mechanism
Hello to the list
Some days ago, I placed a question on this maling-list and received an
answer from Martin
that I tried to follow. Unfortunately, I am still puzzled by the next step.
I spent the whole Week-end in gathering information from the net.
Some of them are almost contridtcory and I lack a good document to help me.
So my first question would beL Is there a convenient document which
2004 May 23
1
Running scripts automatically from Rgui (Windows)
I am trying to get a script to start automatically
when I run the GUI version of R version 1.9.0, started
from a .bat file (WINDOWS), but I'm getting strange
errors
In version 1.8.1 I was able to run a script
automatically by copying the script into the file
.Rprofile and running Rgui from a .bat script, but in
version 1.9.0 I'm getting errors like:
Error in inherits(x,
2010 Mar 08
1
confused by classes and methods.
Hello, I have a simple class that looks like:
setClass("statisticInfo",
representation( max = "numeric",
min = "numeric",
beg = "numeric",
current = "numeric",
avg = "numeric",
obs = "vector"
2003 Oct 27
1
initialization of S4 classes/methods
I'm seeing weird issues in methods initialization, i.e. loading
marrayClasses loads Biobase, and when explicitly done, as in
library(Biobase)
library(marrayClasses)
is fine, but when Biobase is loaded via a require statement in
marrayClasses' .First.Lib, I end up with:
Warning message: In the method signature for function "coerce", class
"exprSet" has no
2002 May 29
1
warning message for setAs when using class AsIs
This seemed too advanced for r-help and is related to the recent discussion of
character vectors in dataframes.
Following Brian Ripley's most excellent advice, we are moving to a world in
which character vectors in dataframes are always of class AsIs. The cool way of
doing this seemed to be the following:
> cat(c("x", "y", "z"), file = "test.txt",
2008 Aug 27
1
S4 coercion
I am extending a DBI connection by
setClass("TSPostgreSQLConnection",
contains=c("PostgreSQLConnection","TSdbOptions"))
but the first time I use this I am getting a warning when it tries to
coerce the TSPostgreSQLConnection to a PostgreSQLConnection. After the
first use the warning stops, but the first warning is causing me
problems when I do automatic checks
2006 Sep 22
1
Possible bug in base::namespaceImportFrom?
Hi,
namespaceImportFrom in base/R/namespace.R has the following:
fdef <- methods:::getGeneric(genName, impenv)
The definition of getGeneric is in methods/R/RMethodUtils.R starts
with:
getGeneric <-
## return the definition of the function named f as a generic.
##
## If there is no definition, throws an error or returns
## NULL according to the value of
2012 Aug 05
2
setMethod sometimes fails to set package slot when signature has trailing 'ANY'
after this
setClass("A")
setGeneric("bar", function(x, y) standardGeneric("bar"))
setMethod(bar, signature(x="A", y="A"), function(x, y) {})
setMethod(bar, signature(x="A", y="ANY"), function(x, y) {})
the method for signature c("A", "A") contains package information
> str(getMethod(bar,
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on
CRAN for use with R version 2.4.0 or later.
Purpose of the packages:
The Matrix package provides S4 classes and methods for sparse
and dense matrices. The lme4 package provides functions for fitting
and assessing linear or generalized linear mixed effects models (also
called multilevel models). Like the Matrix package,
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
Versions 0.9975-1 of the Matrix and lme4 packages will soon be available on
CRAN for use with R version 2.4.0 or later.
Purpose of the packages:
The Matrix package provides S4 classes and methods for sparse
and dense matrices. The lme4 package provides functions for fitting
and assessing linear or generalized linear mixed effects models (also
called multilevel models). Like the Matrix package,
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 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
>>>>> Martin Maechler
>>>>> on Sat, 29 Jun 2019 10:33:10 +0200 writes:
>>>>> peter dalgaard
>>>>> on Fri, 28 Jun 2019 16:20:03 +0200 writes:
>> > On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote:
>> >
>> >>>>>> Henrik Bengtsson
2012 Jun 19
0
Error with RJSONIO installation
Hi friends,
I was trying to install RJSONIO in Ubuntu10.04 LTS but unfortunately ends
up with following error.
trying URL 'http://stat.ethz.ch/CRAN/src/contrib/RJSONIO_0.98-1.tar.gz'
Content type 'application/x-gzip' length 1150673 bytes (1.1 Mb)
opened URL
==================================================
downloaded 1.1 Mb
* installing *source* package ‘RJSONIO’ ...
Trying to
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
Using:
untrace(methods::conformMethod)
at <- c(12,4,3,2)
str(body(methods::conformMethod)[[at]])
## language omittedSig <- omittedSig && (signature[omittedSig] != "missing")
cc <- 0L
trace(methods::conformMethod, tracer = quote({
cc <<- cc + 1L
print(cc)
if (cc == 31) { ## manually identified
untrace(methods::conformMethod)
2019 Jun 28
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
> On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote:
>
>>>>>> Henrik Bengtsson
>>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes:
>
>> Using:
>>
>> untrace(methods::conformMethod)
>> at <- c(12,4,3,2)
>> str(body(methods::conformMethod)[[at]])
>> ## language omittedSig
2003 Feb 03
0
extension of generic functions in methods package
How can I extend the signature of a generic function, because the following
example is unclear for me.
setClass("A",representation(data="numeric"));
setGeneric("func",function(obj,...){
res <- standardGeneric("func");
res at cal <- match.arg();
return(res);
});
func1.A <- function(obj){
print("A");
return();
}