spice: Circuit Simulation with a 'SPICE3f5'-Derived Engine

Runs 'SPICE3' circuit netlists (operating point, DC sweep, transient, small-signal AC, pole-zero, noise, distortion, transfer function and sensitivity analyses) on 'Dune', a circuit simulator written in 'Rust' and derived from Berkeley 'SPICE3f5', validated against 'ngspice'. Results come back as long tibbles ready for plotting, and plots can be read from and written to 'SPICE3' rawfiles for exchange with other simulators.

Version: 0.1.0
Depends: R (≥ 4.2)
Imports: cli, rlang (≥ 1.1.0), tibble
Suggests: ggplot2, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-12-05
DOI: 10.32614/CRAN.package.spice (may not be active yet)
Author: André Leite [aut, cre], The Regents of the University of California [cph] ('SPICE3f5', from which the simulation engine is derived), The authors of the dependency Rust crates [cph] (see inst/AUTHORS for details)
spice author details
Maintainer: André Leite <leite at castlab.org>
BugReports: https://github.com/milkway/dune/issues
License: BSD_3_clause + file LICENSE
URL: https://milkway.github.io/dune/r/, https://github.com/milkway/dune
NeedsCompilation: yes
SystemRequirements: Cargo (Rust's package manager), rustc (>= 1.88.0)
Materials: README, NEWS
CRAN checks: spice results

Documentation:

Reference manual: spice.html , spice.pdf
Vignettes: A transistor amplifier: bias, gain, noise and clipping (source)
Dune's defaults and SPICE compatibility (source, R code)
Transmission lines and reflections (source)
Oscillators and periodic steady state (source)
Getting started with spice (source, R code)
Sweeps, tolerances and design exploration (source)

Downloads:

Package source: spice_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): spice_0.1.0.tgz, r-oldrel (arm64): spice_0.1.0.tgz, r-release (x86_64): spice_0.1.0.tgz, r-oldrel (x86_64): spice_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=spice to link to this page.