inst/tests/graphicsTest.R

library(RCacheSuite)
x = 5

mycache = cachingEngine()

evalWithCache("plot(1:x)", cache = mycache, verbose = TRUE)

evalWithCache("plot(1:x)", cache = mycache, verbose = TRUE)

x = 6

evalWithCache("plot(1:x)", cache = mycache, verbose = TRUE)

evalWithCache("plot(2:x)", cache = mycache, verbose = TRUE)

mycache

mycache$to_disk()

calls = thing[[1]]

for(i in 1:length(thing[[1]])) {
  if( "NativeSymbolInfo" %in% class(thing[[1]][[i]][[2]][[1]]) ){
    thing[[1]][[i]][[2]][[1]] <- getNativeSymbolInfo(thing[[1]][[i]][[2]][[1]]$name);
  }
} 


        
gmbecker/RCacheSuite documentation built on May 17, 2019, 6:42 a.m.