Skip to content

Commit e4b4eef

Browse files
committed
added instructions
1 parent 9e86a41 commit e4b4eef

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

R-projects-test-example.ipynb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"Checking Projects with testthat\n",
8+
"-----------------------------\n",
9+
"\n",
10+
"In this notebook, a testthat reporter sends test output to the jupyter client.\n",
11+
"To see this in action, paste this javascript into your console:\n",
12+
"\n",
13+
"```\n",
14+
"Jupyter.notebook.kernel.comm_manager.register_target('dc_project',\n",
15+
" function(comm, msg) {\n",
16+
" // comm is the frontend comm instance\n",
17+
" // msg is the comm_open message, which can carry data\n",
18+
"\n",
19+
" // Register handlers for later messages:\n",
20+
" comm.on_msg(function(msg) { console.log('msg:', msg)} );\n",
21+
" comm.on_close(function(msg) { console.log('close msg:', msg)});\n",
22+
" //comm.send({'foo': 0});\n",
23+
" })\n",
24+
"```"
25+
]
26+
},
327
{
428
"cell_type": "code",
529
"execution_count": 93,

0 commit comments

Comments
 (0)