View source: R/utilities-simulation.R
removeSimulationFromCache | R Documentation |
Removes a simulation from simulations cache.
removeSimulationFromCache(simulation)
simulation |
Simulation to be removed from the cache |
TRUE if the simulation was cached and could be removed from cache. FALSE otherwise, usually indicating that the specific simulation was not cached.
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim1 <- loadSimulation(simPath)
sim2 <- loadSimulation(simPath, loadFromCache = FALSE, addToCache = FALSE)
removeSimulationFromCache(sim1) # returns TRUE
removeSimulationFromCache(sim2) # returns FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.