Displaying 4 results from an estimated 4 matches for "savecach".
Did you mean:
savecache
2006 May 25
1
save() saves extra stuff if object is not evaluated
...quot;, file, file.info(file)$size))
bfr <- suppressWarnings(readBin(file, what="character", n=to))
bfr <- gsub("(\001|\002|\003|\004|\005|\016|\020|\036|\a|\n|\t)", "", bfr);
bfr <- bfr[nchar(bfr) > 0];
cat(bfr, sep="", "\n");
}
saveCache <- function(file, y, sources=NULL, eval=FALSE) {
if (eval)
dummy <- is.null(sources)
base::save(file=file, sources, compress=FALSE)
}
aVariableNotSaved <- double(1e6)
main <- function() {
# This 'big' variable is saved in case 1 below!
big <- rep(letters, lengt...
2007 Dec 10
4
Reading through a group of .RData files
Hi.
I have a procedure that reads a directory, loops through a set of particular .RData files, loading each one, and feeding its object(s) into a function, as follows:
cvListFiles<-list.files(fnDir);
for(i in grep(paste("^",pfnStub,".*\\.RData$",sep=""),cvListFiles)){
load(paste(fnDir,cvListFiles[i],sep="/"));
myFunction(rliObject);
rm(rliObject);
};
2009 Jul 15
1
loading multiple .Rdata and preserving variable names
...an efficient way to work with multiple separate outputs which one
would like to compare?
(I have read something about environments, but I understood it's only for
functions. I could create environments, but was not succesful in using them
at all (location change or separate sandbox). Functions saveCache,
loadCache, saveObject, loadObject is not really what I have in mind, too --
saveObject(list=ls(), "NewObjectFile") is not a solution either...)
Thanks for any hint in advance.
Cheers, Zroutik
[[alternative HTML version deleted]]
2007 Oct 15
2
Digest package - make digest generic?
...ue file name for each example graphic. I want to be able to
> > | easily compare the appearance of examples between versions, but
> > | currently the digest depends on internal details, so it's hard to
> > | match up graphics between versions.
>
> See loadCache(key) and saveCache(object, key) in R.cache, which
> basically loads and saves results from and to a file cache based on a
> key object - no need to specify paths or filenames. You can specify
> paths etc if you want to, but by default it is just transparent.
The problem is I need to refer to the image fro...