m2r provides a persistent interface to Macaulay2 (http://www.math.uiuc.edu/Macaulay2/) and front-end tools facilitating its use in the R ecosystem. For details, see vignette("m2r").
D. Kahle, C. O'Neill, and J. Sommars (2020). "A Computer Algebra System for R: Macaulay2 and the m2r Package." Journal of Statistical Software, 93(9):1-31.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.