Run a session's analyses again
Value
A spice_result, as from spice_run() – the deck's
.measure cards evaluated on the new plots included: with
warm_start = FALSE, the result spice_run() gives for the altered
deck.
Errors
As spice_run(): an analysis failure is a spice_error_analysis.
Examples
s <- spice_session("rc\nv1 1 0 pulse(0 1)\nr1 1 2 1k\nc1 2 0 1u\n.tran 0.1m 5m\n.end")
tau <- vapply(c(1e3, 2e3), function(r) {
tr <- spice_plots(spice_rerun(spice_alter(s, "r1", r)))[[1]]$values
tr$time[which.max(tr[["v(2)"]] > 1 - exp(-1))]
}, numeric(1))
tau
#> [1] 0.001086294 0.002089834