zzz.R
### NAMESPACE VERSION:
.onLoad <- function(lib, pkg) {
# remove the require() call for 2.0.0:
# require(lattice)
.Call("gstat_init", as.integer(1))
}
### pre-NAMESPACE VERSION:
## ".First.lib" <-
## function(lib, pkg) {
## require(lattice)
## library.dynam("gstat", pkg, lib)
## .Call("gstat_init", as.integer(1), PACKAGE = "gstat")
## }
variogram <- function(object, ...) UseMethod("variogram")