bubble::set_node_engine() knitr::opts_chunk$set(echo = TRUE)
Eval NodeJS code in Markdown
var x = 12; var y = 17;
Chunks are linked to each other:
console.log(x + y)
```{node include = FALSE} const express = require('express') const app = express()
app.get('/', function (req, res) { res.send('Hello R!') })
app.listen(3000, function () { console.log('Example app listening on port 3000!') })
```r httr::GET("http://127.0.0.1:3000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.