Displaying 20 results from an estimated 21 matches for "findmethods".
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
~/R-rc_2019-04-21_r76409/bin/Rscript -e "options(warn=2); res <-
findMethods('isSymmetric'); print('success')"
Error in findMethods("isSymmetric") :
?...
2019 Apr 21
2
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
...-devel/R/configure --prefix=/home/btyner/R-76409
--enable-R-shlib --with-blas --with-lapack --with-readline
--without-recommended-packages
?? make
?? make check
which fails at reg-tests-1d.R; the failure being:
?? > ## str() now even works with invalid objects:
?? > moS <- mo <- findMethods("isSymmetric")
?? Error in findMethods("isSymmetric") :
? ?? (converted from warning) non-generic function 'isSymmetric' given
to findMethods()
?? Execution halted
I am able to build revision 76407 from source just fine (using
https://cran.r-project.org/src/base-pr...
2019 Apr 21
0
R-devel (rev 76409) fails 'make check': non-generic function 'isSymmetric' given to findMethods()
...9
> --enable-R-shlib --with-blas --with-lapack --with-readline
> --without-recommended-packages
> ?? make
> ?? make check
>
> which fails at reg-tests-1d.R; the failure being:
>
> ?? > ## str() now even works with invalid objects:
> ?? > moS <- mo <- findMethods("isSymmetric")
> ?? Error in findMethods("isSymmetric") :
> ? ?? (converted from warning) non-generic function 'isSymmetric' given
> to findMethods()
> ?? Execution halted
Likely the problem is that you don't have the recommended packages
loaded....
2010 Nov 10
1
S4 package warning
Hello everyone. R-2.12.0, suse linux 11.3.
I am debugging a package that uses S4 methods
and R CMD check gives the following warning:
> Warning in methods::findMethods(g, env) :
> non-generic function 'mdm' given to findMethods()
> See the information on DESCRIPTION files in the chapter 'Creating R
> packages' of the 'Writing R Extensions' manual.
I don't see anything obvious in that part of the R-exts but
FWIW, here is my...
2008 Jun 08
1
R CMD CHECK WARNING inappropriate for S4 method?
The package 'graph' defines classes graph and graphNEL (extending
graph) and a union,graph,graph-method. These are all exported and
fully documented.
The package 'GSEABase' Imports: graph and importClassesFrom(graph,
graphNEL). GSEABase defines methods on union for its own classes (not
graph / graphNEL), and has exportMethods(union).
union,graph,graph-method is not used in
2010 May 21
1
S4 method defined but not used
...[1]
Error in nancycats[1] : object of type 'S4' is not subsettable # "[" IS NOT USED HERE
### end R code
And still, the method is defined in the environment:
### R code
> showMethods("[", class="genind")
Function: [ (package base)
x="genind"
> findMethods("[", classes="genind")$genind
Method Definition:
function (x, i, j, ..., drop = FALSE)
{
.local <- function (x, i, j, ..., loc = NULL, treatOther = TRUE,
drop = FALSE)
{
if (missing(i))
i <- TRUE
if (missing(j))...
2011 May 19
1
r-2.13 fails make check
.....make[3]:
*** [reg-packages.Rout] Error 1
make[2]: *** [test-Reg] Error 2
make[1]: *** [test-all-basics] Error 1
make: *** [check] Error 2
locating tests/reg-packages.Rout.fail I find
> stopifnot(require("myTst",lib = "myLib"))
Loading required package: myTst
> sm <- findMethods(show, where= as.environment("package:myTst"))
> stopifnot(names(sm at names) == "foo")
> unlink("myTst_*")
>
> ## More building & installing packages
> ## NB: tests were added here for 2.11.0.
> ## NB^2: do not do this in the R sources!
> ## an...
2009 Mar 30
0
Problem with Tomcat
...rnal(ClassLoader.java:319)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.getMethods(Class.java:1410)
at org.apache.tomcat.util.IntrospectionUtils.findMethods(IntrospectionUtils.java:812)
at org.apache.tomcat.util.IntrospectionUtils.setProperty(IntrospectionUtils.java:268)
at org.apache.catalina.startup.SetAllPropertiesRule.begin(SetAllPropertiesRule.java:59)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at org.apache.x...
2008 Mar 18
0
Utilities for methods
...If you have functions
that manipulate MethodsList objects (e.g., from calling getMethods()),
these should still work. But you might consider changing to newer
utilities that should be faster and more convenient, at least when more
than one argument is involved.
The new utilities will be: findMethods(), which returns a simple list
of methods (replacement for getMethods()); findMethodSignatures(), which
returns a character matrix of signatures; and hasMethods(), which tests
for the existence of methods.
Cheers,
John
2017 Mar 06
0
R 3.3.3 is released
The build system rolled up R-3.3.3.tar.gz (codename "Another Canoe") 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.3.3.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
2017 Mar 06
0
R 3.3.3 is released
The build system rolled up R-3.3.3.tar.gz (codename "Another Canoe") 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.3.3.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
2012 Oct 13
0
installation of R (2.14.1 and 2.15.1) fails due to [reg-packages.Rout] Error
..."methods" NA NA NA
Enhances OS_type License Built
myTst NA NA "What license is it under?" "2.14.1"
> stopifnot(require("myTst",lib = "myLib"))
Loading required package: myTst
> sm <- findMethods(show, where= as.environment("package:myTst"))
> stopifnot(names(sm at names) == "foo")
> unlink("myTst_*")
>
> ## More building & installing packages
> ## NB: tests were added here for 2.11.0.
> ## NB^2: do not do this in the R sources!
> ## a...
2018 Jun 19
2
Paquete dismo, cálculo coeficiente de variación
Hola,
en la misma definici?n de la funci?n:
# P15. Precipitation Seasonality(Coefficient of Variation)
# the "1 +" is to avoid strange CVs for areas where mean rainfaill is < 1)
p[,15] <- apply(prec+1, 1, cv)
Un saludo,
Jorge
On Martes, 19 de Junio de 2018 13:07:27 Marcelino de la Cruz Rot escribi?:
> Hola Jaume:
>
> Si miras el c?digo de biovars() ver?s que la
2010 Apr 22
2
R2.11.0 - rasterImage() and barplot fill-patterns
...> had been superseded by hash tables (environments) since R
> 2.8.0 are being phased out. Objects of this class are no
> longer assigned or used as metadata by the package.
>
> getMethods() is now deprecated, with its internal use replaced
> by findMethods() and other changes. Creating objects from the
> MethodsList class is also deprecated.
>
> o Parsing strings containing both octal/hex and Unicode escapes
> now gives a warning and will become an error in R 2.12.0.
>
>
> INSTALLATION
>
> o UTF-8 i...
2010 Apr 22
0
R 2.11.0 is released
...t metadata objects which
had been superseded by hash tables (environments) since R
2.8.0 are being phased out. Objects of this class are no
longer assigned or used as metadata by the package.
getMethods() is now deprecated, with its internal use replaced
by findMethods() and other changes. Creating objects from the
MethodsList class is also deprecated.
o Parsing strings containing both octal/hex and Unicode escapes
now gives a warning and will become an error in R 2.12.0.
INSTALLATION
o UTF-8 is now used for the reference manual a...
2010 Apr 22
0
R 2.11.0 is released
...t metadata objects which
had been superseded by hash tables (environments) since R
2.8.0 are being phased out. Objects of this class are no
longer assigned or used as metadata by the package.
getMethods() is now deprecated, with its internal use replaced
by findMethods() and other changes. Creating objects from the
MethodsList class is also deprecated.
o Parsing strings containing both octal/hex and Unicode escapes
now gives a warning and will become an error in R 2.12.0.
INSTALLATION
o UTF-8 is now used for the reference manual a...
2020 Feb 14
3
R-3.6.2 make check fails
...cense is it under?" NA
License_restricts_use OS_type MD5sum NeedsCompilation Built
myTst NA NA NA NA "3.6.2"
> stopifnot(require("myTst",lib = "myLib"))
Loading required package: myTst
> sm <- findMethods(show, where= as.environment("package:myTst"))
> stopifnot(names(sm at names) == "foo")
> unlink("myTst_*")
>
> ## getPackageName() for "package:foo":
> require('methods')
> library(tools)
> oo <- options(warn=2)
> detach(&...
2011 Apr 13
0
R 2.13.0 is released
..., to
extract from model objects a suitable value for use in BIC
calculations. An S4 generic derived from it is defined in
package stats4.
? Code for S4 reference-class methods is now examined for possible
errors in non-local assignments.
? findClasses, getGeneric, findMethods and hasMethods are revised
to deal consistently with the package= argument and be consistent
with soft namespace policy for finding objects.
? tools::Rdiff() now has the option to return not only the status
but a character vector of observed differences (which are still...
2011 Apr 13
0
R 2.13.0 is released
..., to
extract from model objects a suitable value for use in BIC
calculations. An S4 generic derived from it is defined in
package stats4.
? Code for S4 reference-class methods is now examined for possible
errors in non-local assignments.
? findClasses, getGeneric, findMethods and hasMethods are revised
to deal consistently with the package= argument and be consistent
with soft namespace policy for finding objects.
? tools::Rdiff() now has the option to return not only the status
but a character vector of observed differences (which are still...
2008 Apr 22
3
R 2.7.0 is released
...Unicode encoding errors, line
length and context stack overflows, and mis-specified argument
lists to functions).
o The "MethodsList" objects originally used for method selection
are being phased out. New utilities provide simpler
alternatives (see ?findMethods), and direct use of the mangled
names for the objects is now deprecated.
o Creating new S4 class and method definitions in an environment
that could not be identified (as package, namespace or global)
previously generated an error. It now results in creating and...