search for: latticeenv

Displaying 4 results from an estimated 4 matches for "latticeenv".

2007 Mar 06
1
Substituting functions in package - Lattice
...t.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 a...
2007 Jan 30
2
lattice: how to get 'lattice.theme'
I'm using lattice 0.14. As of version 0.5 the Changes says there is a global list called 'lattice.theme'. How can I access this? I have tried many ways, including options(lattice.theme) lattice.getOption("lattice.theme") get("lattice.theme", envir = .LatticeEnv) getFromNamespace("lattice.theme", "lattice") getAnywhere("lattice.theme") (both before and after a call to trellis.device) Thanks, Ben
2007 Aug 03
2
Managing global/local variables when creating R packages
I'm working on a package for R to create graphs for modeling interactions between latent variables in SEM. At the moment, I have one function which performs the necessary steps to prepare the data for graphing, and then separate graphing functions depending on what graph type (or types) the user wants. To get the prepped data from the setup function to the graphing functions, I
2009 Mar 31
4
what is the preferred method to create a package local variable?
for the moment, I'm using: .onAttach <- function(libname, pkgname) { .bbg.db.conn <<- dbConnect(dbDriver("PostgreSQL"), user="blah","blah") } .onUnload <- function(libpath) { dbDisconnect(.bbg.db.conn) } which results in a hidden global variable in the global environment. I would prefer to make the assignment only in the package namespace.