3 ms·
You can also open a lisp interpreter and open an R session from here. Probably more efficient. If you want to open a lisp repl inside R you can just open an R
by pvaldes 9y ago
You can also open a lisp interpreter and open an R session from here. Probably more efficient.
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)
- sciencerobot 9y agoOne of the point's is that you can use R's functions in a LISP-like language.
- bachmeier 9y agoIn that case, why not just embed an R interpreter inside Lisp? I've published a slightly modified fork of RInside that lets you embed R inside anything with a C FFI[1]. Tested only on Linux. [1] https://bitbucket.org/bachmeil/rinsidec https://bitbucket.org/bachmeil/rinsidec
- pvaldes 9y agoCall an R session directly from a Lisp repl then.