bubble::set_node_engine()
knitr::opts_chunk$set(echo = TRUE)

Run node in Markdown

Eval NodeJS code in Markdown

var x = 12; 
var y = 17;

Chunks are linked to each other:

console.log(x + y)

More complex example:

```{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") 


ColinFay/bubble documentation built on May 15, 2020, 1:47 p.m.