spice_param() reads the current value of an alterable parameter
(names and units as spice_alter()); spice_alterable() lists the
parameters an element has.
Value
spice_param(): a number, a numeric vector (a source
function's arguments) or NULL for a value the element never got (a
MOS w left to .options defw, a source without AC).
spice_alterable(): a character vector.
Examples
s <- spice_session("t\nv1 1 0 dc 1 sin(0 1 1k)\nr1 1 0 1k\n.op\n.end")
spice_param(s, "v1", "sin")
#> [1] 0 1 1000
spice_alterable(s, "v1")
#> [1] "dc" "acmag" "acphase" "pulse" "sin" "exp"
#> [7] "pwl" "sffm" "trnoise" "trrandom"