knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
A toy Lisp interpreter in R
You can install lisprr from github with:
# install.packages("devtools") devtools::install_github("igjit/lisprr")
lisprr::evaluate("(+ 1 2)")
lisprr::evaluate("(plot (: 1 10))")
lisprr::translate("(+ 1 2)")
lisprr::translate("(define (add2 x) (+ x 2))")
> lisprr::repl() lisprr> (: 1 10) 1 2 3 4 5 6 7 8 9 10 lisprr> (define (add2 x) (+ x 2)) #<closure> lisprr> (add2 40) 42 lisprr> (plot iris) lisprr> q bye. >
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.