Displaying 20 results from an estimated 500 matches similar to: ""rep" missing from methods:::.BasicFunsList"
2015 Jan 21
2
reducing redundant work in methods package
Doing it like this:
genericForPrimitive <- function(f, where = topenv(parent.frame()), mustFind
= TRUE) {
ans = .BasicFunsList[[f]]
## this element may not exist (yet, during loading), dom't test null
if(mustFind && identical(ans, FALSE))
stop(gettextf("methods may not be defined for primitive function %s
in this version of R",
2015 Jan 21
2
reducing redundant work in methods package
Hi all,
The function call series genericForPrimitive -> .findBasicFuns -> .findAll
happens 4400 times while the GenomicRanges package is loading. Each time
.findAll follows a chain of environments to determine that the methods
namespace is the only one that holds a variable called .BasicFunsList. This
accounts for ~10% of package loading time. I'm sure there is some history
to that
2006 Apr 01
1
Sys.sleep() burns up CPU on Solaris 8
I noticed that R was burning up 100% of a CPU when a call to Sys.sleep()
was made. Upon investigation, I discovered that R_checkActivityEx() in
src/unix/sys-std.c was putting the entire timeout (in usec) into the
struct timeval tv_usec member, leaving tv_sec set to 0.
I don't know about other unix variants, but Solaris requires that the
timeout value be normalized (i.e. 0 <= tv_usec
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
2015 Jan 22
0
reducing redundant work in methods package
I also just noticed that there is a bug: identical(ans, FALSE) should
be is.null(ans).
So no error is thrown:
> methods:::genericForPrimitive("foo")
NULL
Will fix.
On Wed, Jan 21, 2015 at 3:13 PM, Peter Haverty <haverty.peter at gene.com> wrote:
> Doing it like this:
>
> genericForPrimitive <- function(f, where = topenv(parent.frame()), mustFind
> = TRUE) {
2015 Jan 21
0
reducing redundant work in methods package
Note that setMethod() resolves .BasicFunsList in the methods namespace
directly when setting a method on a primitive. Somehow there should be
consistency between genericForPrimitive() and the check in setMethod().
Also, we can probably step away from the use of elNamed(), given that [[
now uses exact matching.
Have you tried patching methods to use .BasicFunsList directly as in
setMethod?
On
2012 Mar 07
1
isGeneric() can return an error
Hi,
I wonder if this is a feature or a bug:
> isGeneric("&&")
Error in genericForPrimitive(f) :
methods may not be defined for primitive function ?&&? in this
version of R
> isGeneric(":")
Error in genericForPrimitive(f) :
methods may not be defined for primitive function ?:? in this
version of R
According to the man page:
2005 Jan 13
3
as.character methods
Hello,
?as.character says that the as.character function is a generic with
usage: as.character(x, ...). So, I want to create an S4 object with an
as.character method following the above usage, but I get the below error
telling me that ... isn't in the generic for as.character.
> setClass("tmp", "numeric")
> setMethod("as.character", "tmp",
2005 Jan 13
3
as.character methods
Hello,
?as.character says that the as.character function is a generic with
usage: as.character(x, ...). So, I want to create an S4 object with an
as.character method following the above usage, but I get the below error
telling me that ... isn't in the generic for as.character.
> setClass("tmp", "numeric")
> setMethod("as.character", "tmp",
2011 Jun 29
0
Error in testInstalledBasic
Hi,
I am running R 2.13.0 on a Windows 7 machine.
I ran the script:
testInstalledBasic('devel')
and received the following warning message:
running tests of consistency of as/is.*
creating ?isas-tests.R?
running code in ?isas-tests.R?
comparing ?isas-tests.Rout? to ?isas-tests.Rout.save? ...running tests of random deviate generation -- fails occasionally
running code in
2002 Jan 07
0
rsync-2.5.1 / zlib patches
The following zlib files need patches in order to compile using Compaq C
on OpenVMS. These patches should also be needed on a Tru64 or LINUX on
ALPHA using Compaq C. These should work on any ANSI compliant compiler.
Operating System: OpenVMS ALPHA V7.3
Compiler: Compaq C T6.5
Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE)
The module adler32.c is testing the unsigned value len to see if
2002 Jan 07
2
rsync-2.5.1 / popt patches
The following popt files need patches in order to compile using Compaq C
on OpenVMS. These patches should also be needed on a Tru64 or LINUX on
ALPHA using Compaq C. Except for the alloca issue, these should work on
any ANSI compliant compiler.
Operating System: OpenVMS ALPHA V7.3
Compiler: Compaq C T6.5
Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE)
SYSTEM.H is doing tests on
2002 Jan 13
1
rsynd-2.5.1 / batch.c patch
Platform: Compaq OpenVMS Alpha 7.3
Compiler: Compaq C T6.5
The following patch is an update to a previous patch that I submitted.
The only change from the previous patch is that the const qualifier has
been added to write_batch_*() routines to improve compiler efficiency.
Because the gdiff -u was done against the distribution it includes the
previous patch.
The functions with no parameters
2002 Jan 07
0
rsync-2.5.1 / lib patches
The following zlib files need patches in order to compile using Compaq C
on OpenVMS. These should work on any ANSI compliant compiler.
Operating System: OpenVMS ALPHA V7.3
Compiler: Compaq C T6.5
Compiler switches: /WARN=ENABLE=(LEVEL4, QUESTCODE)
fnmatch.c and mdfour.c. Compaq C on OpenVMS can not deal with relative
path names in #include files.
Also the local prototype for getenv() does
2005 Jan 14
1
RE: [R] as.character methods
Thank you for your replies. I greatly appreciate the wealth of
documentation on this subject and the time spent by the John Chambers
and the R Core Team making object-orient programming in R a reality. I
hope to be able to give code (not just bug reports) back to the R
community as my projects advance.
I hoping to generalize my as.character question to a real-life
as.character / print method
2006 Feb 28
4
Off-Topic Mambo Vulnerabilities & Patches
On the Mambo CMS site there are vulnerabilities found. Whilst this is
not a CentOS problem, people rent/deploy servers (CentOS) on the net
with Mambo. A guy in one of the user forums on the net, had his Mambo
4.5.2 server hacked and they installed some interesting stuff in /tmp
. When a server is hacked it gives bad PR for the underlying OS.
<----announcement on
2005 Jun 22
2
OT: Asterisk and Mambo - help wanted
Hello everyone,
So, this isn't exactly what it seems. I am not looking to integrate
Asterisk and Mambo. I am the maintainer/creator of AstLinux, and I have
recently decided that I should really have a better web site for it. I
would like to use Mambo so that I can do updates easily, from anywhere,
without having to waste time learning PHP/HTML/etc. Mambo CMS seems the
best and most
2002 Jan 07
1
rsync-2.5.1 / socket.c - unititialized variable breaks build.
In socket.c, the variable error is unitilialzed.
Also the variable length should be an unsigned int.
EAGLE> type socket.gdiff
--- ref_src:socket.c Sat Jan 5 13:27:07 2002
+++ lcl_src:socket.c Sun Jan 6 08:40:51 2002
@@ -1,3 +1,4 @@
+/* Converted by prj_src:unix_c_to_vms_c.tpu AND prj_src:socket.tpu on
6-JAN-20
02 08:40:51.01 OPENVMS_AXP */
/* -*- c-file-style: "linux"
2016 Sep 25
1
Undocumented 'use.names' argument to c()
>From comments in http://stackoverflow.com/questions/24815572/why-does-function-c-accept-an-undocumented-argument/24815653 : The code of c() and unlist() was formerly shared but has been (long time passing) separated. From July 30, 1998, is where do_c got split into do_c and do_unlist.
With the implementation of 'c.Date' in R devel r71350, an argument named 'use.names' is
2012 Sep 16
2
flash plugin
How do I get a flash plugin to work with firefox?
I thought that I installed it correctly,
but I have yet to see any flash videos through firefox.
I keep being told that I need an additional plugin.
When I folow directions, I'm told I already have it?
At least once, I was told I needed to upgrade.
In case it helps, here is the output of
yum provides '*flash*' | grep -e lash -e dobe