  The capability of R to do symbolic mathematics is enhanced by the caracas
package. This package uses the Python computer algebra library SymPy as a
back-end but caracas is tightly integrated in the R environment, thereby
enabling the R user with symbolic mathematics within R. Key components of the
caracas package are illustrated in this paper. Examples are taken from
statistics and mathematics. The caracas package integrates well with e.g.
Rmarkdown, and as such creation of scientific reports and teaching is
supported.
