RSpice: A Package for Using Ngspice from R

Abstract

The RSpice package provides functions to call ngspice, an open source circuit simulator, from R via its shared library. Netlists including a circuit setup can be passed to the circuit simulator, ngspice, through R, start/stop the simulation, alter device or model paramters, read the simulation output back to R and so on. It is a friendly and easy touse interface to combine the flexible R tools ngspice simulation power to analyze circuits. This article illustrates how to conveniently use the package to run ngspice in R.

Date
Links