tests/testthat/data/rapp.test.1/packrat/lib-R/Matrix/data/CAex.R

stopifnot(require(Matrix), require(methods)) # Matrix classes; new, slot<-

CAex <-
    local({
	load(system.file(file.path("external", "CAex_slots.rda"), package = "Matrix"))
	## -> 'L'
	r <- new("dgCMatrix")
	for (n in c("Dim", "i","p","x"))
	    slot(r, n) <- L[[n]]
	r
    })

## The reverse { CAex |--> L } is
if(FALSE) {
    sNms <- c("Dim", "i", "p", "x")
    L <- lapply(sNms, function(N) slot(CAex, N)); names(L) <- sNms
    save(L, file = "/u/maechler/R/Pkgs/Matrix/inst/external/CAex_slots.rda")
}
rappster/rapp documentation built on May 26, 2019, 11:56 p.m.