Displaying 5 results from an estimated 5 matches for "bindingislock".
Did you mean:
bindingislocked
2006 May 14
1
bindingIsLocked returns illogical logical
bindingIsLocked applied to a locked binding returns a 'logical' that
is niether true nor false.
Martin
> e <- new.env()
> e$x <- 1
> e$y <- 2
> lockBinding("x", e)
NULL
> bindingIsLocked("x", e)
[1] TRUE
> bindingIsLocked("x", e)==TRUE
[1] FALSE...
2011 May 31
1
assignInNamespace and new bindings
...t possible:
--- src/library/utils/R/objects.R (revision 56024)
+++ src/library/utils/R/objects.R (working copy)
@@ -252,8 +252,9 @@
stop("environment specified is not a package")
ns <- asNamespace(substring(nm, 9L))
} else ns <- asNamespace(ns)
- if(bindingIsLocked(x, ns)) {
- unlockBinding(x, ns)
+ new_binding <- !exists(x,ns)
+ if( new_binding || bindingIsLocked(x, ns)) {
+ if(!new_binding) unlockBinding(x, ns)
assign(x, value, envir = ns, inherits = FALSE)
w <- options("warn")
on.exit(opti...
2004 May 13
0
using trace() on S4 coerce method
I'm trying to use trace() on an S4 coerce method, but get the error
Error in bindingIsLocked(what, whereM) : no binding for "coerce"
What am I doing wrong? Example code follows.
(I've googled the R mailing lists for "trace coerce" and "trace
bindingisLocked" without finding anything relevant. Perhaps I should
re-define the method in terms of an ordin...
2006 Jun 01
0
R 2.3.1 is released
...with
factor.mode="numeric" to factors.
o edit.matrix() tried to set rownames and colnames from the
original matrix even if the sizes had been altered, and
ignored changes made to the column names. edit.row.names has
a more sensible default (if the rownames are non-NULL).
o bindingIsLocked() was returning invalid values of a logical
vector on some platforms.
o merge.data.frame() did not make the column names unique (by
appending elements of 'suffixes') when performing a Cartesian
product. (PR#8676)
o rbind.data.frame() matches up the names of columns (which wa...
2006 Jun 01
0
R 2.3.1 is released
...with
factor.mode="numeric" to factors.
o edit.matrix() tried to set rownames and colnames from the
original matrix even if the sizes had been altered, and
ignored changes made to the column names. edit.row.names has
a more sensible default (if the rownames are non-NULL).
o bindingIsLocked() was returning invalid values of a logical
vector on some platforms.
o merge.data.frame() did not make the column names unique (by
appending elements of 'suffixes') when performing a Cartesian
product. (PR#8676)
o rbind.data.frame() matches up the names of columns (which wa...