There are precisely four normed division algebras over the reals: the
reals themselves, the complex numbers, the quaternions, and the
octonions. The R system is well equipped to deal with the first two:
the onion package provides some functionality for the third and
fourth.
References
R. K. S. Hankin 2006. “Normed division algebras in R:
introducing the onion package”. R News, Volume 6, number 2