[Rd] tracing something in a namespace (PR#7091)

rmh at temple.edu rmh at temple.edu
Wed Jul 14 21:33:07 CEST 2004


# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
#       r-bugs at r-project.org
#
######################################################


> x <- rnorm(10)
> y <- 1:10
> xyplot(y ~ x)
> trace(lattice:::print.trellis, exit=recover)
[1] "print.trellis"
Warning message: 
Assigning over the binding of symbol "print.trellis" in environment/package "lattice" 
in: .assignOverBinding(what, newFun, whereF) 
> xyplot(y ~ x)
> untrace(lattice:::print.trellis)
Error in untrace(lattice:::print.trellis) : 
	Argument what should be the name of a function
> 


Something isn't right.  I see three possibilities.

a. tracing something in a namespace is prohibited and I didn't get an error,
instead I got a warning.

b. tracing in a namespace is acceptable, but the trace didn't work.

c. untrace doesn't recognize lattice:::print.trellis as the name of a function,
even though trace did.


--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status = 
 major = 1
 minor = 9.1
 year = 2004
 month = 06
 day = 21
 language = R

Windows XP Home Edition (build 2600) Service Pack 1.0

Search Path:
 .GlobalEnv, file:c:/HOME/rmh/hh/splus.library/HH/.RData, package:methods, package:stats, 
package:utils, package:multcomp, package:mvtnorm, package:abind, package:graphics, 
package:lattice, package:grid, Autoloads, package:base



More information about the R-devel mailing list