Displaying 1 result from an estimated 1 matches for "newassign".
Did you mean:
deassign
2009 Jan 23
1
overwriting '<-' and infinite recursions
...in a few words; but this seems
the only clean option other than hacking R's core source code. My code
looks like:
# in .onLoad of a package; or if you want to test, put it in a function
env <- as.environment('package:base')
unlockBinding('<-',env)
assign('<-', newAssign, envir=env)
.Internal(lockBinding(as.name('<-'), env))
#not using lockBinding directly because it calls '<-'
It gave me this error: Error: evaluation nested too deeply: infinite
recursion / options(expressions=)?
Any suggestion is appreciated!
--
Yi