Hi, I'm trying to learn how a package works but substituting a parituclart function with my own (basically the original one with some debug statements). The package is lattice and the method is "print.trellis" which is a S3 method and is not visible. To replace this, i sourced a file with the rewritten print.trellis, and the old one was replaced. However, i get this error when I attempt to print a trellis object (e.g an xyplot) Error in assign("last.object", x, env = .LatticeEnv) : object ".LatticeEnv" not found I notice that .LatticeEnv is defined in zzz.R (in the R folder of the lattice source). My question, how does one do development on the lattice package without having to recompile everything and install a package? I read something about emacs and development (i use emacs) in the zzz.R file "## .First.lib will be used if the NAMESPACE file is missing. This is ## useful during development, thanks to C-c C-l in Emacs/ESS. It won't ## be used if a NAMESPACE file is present. Note: Due to registration ## of C functions done in the NAMESPACE file, wireframe (and possibly ## cloud) won't work in this scenario." But couldn't quite figure it out. Thanks for any help provided. Saptarshi Saptarshi Guha | sapsi@pobox.com | http://www.stat.purdue.edu/~sguha [[alternative HTML version deleted]]