A basic Lisp interpreter in R
github.com
github.com
https://www.stat.auckland.ac.nz/%7Eihaka/downloads/Compstat-...
In particular, here's their R version:
https://bitbucket.org/hak7a3/lisp-on-tex
I guess because it didn't implement lisp itself, since you still have to use \ to invoke macros.
I feel like lots of folks in the R community secretly or not-so-secretly pine for lisp. My own "someday project" is to implement some portion of R in Racket—"Arket". Of course all the native libraries that have been wrapped in R are the tricky bit.
Everything in R is an SEXP struct. The native code is all shared libraries on Linux and Mac, and mostly DLLs on Windows. There should be almost no problem calling the native libraries if you have an existing R installation.
That doesn't apply if you are talking about a complete reimplementation of R, but that would be a massive project, in which case calling native libraries would be of little relevance.
If you want to open a lisp repl inside R you can just open an R session and write:
system("sbcl", intern=FALSE)
That's all... use intern true if you want to save the session to an R object
foo <-system("clisp", intern=TRUE)