From rmh at temple.edu  Wed Jul 14 21:33:07 2004
From: rmh at temple.edu (rmh@temple.edu)
Date: Wed Jul 14 21:33:11 2004
Subject: [Rd] tracing something in a namespace (PR#7091)
Message-ID: <20040714193307.15F58108C7@slim.kubism.ku.dk>

# 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@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


[Rd] tracing something in a namespace (PR#7091)
rmh@temple.edu