| 1 |
{ |
| 2 |
"cells": [ |
| 3 |
{ |
| 4 |
"cell_type": "raw", |
| 5 |
"metadata": {}, |
| 6 |
"source": [ |
| 7 |
"---\n", |
| 8 |
"title: \"R Notebook\"\n", |
| 9 |
"output: html_notebook\n", |
| 10 |
"---" |
| 11 |
] |
| 12 |
}, |
| 13 |
{ |
| 14 |
"cell_type": "markdown", |
| 15 |
"metadata": {}, |
| 16 |
"source": [ |
| 17 |
"This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code. \n", |
| 18 |
"\n", |
| 19 |
"Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*. " |
| 20 |
] |
| 21 |
}, |
| 22 |
{ |
| 23 |
"cell_type": "code", |
| 24 |
"execution_count": null, |
| 25 |
"metadata": {}, |
| 26 |
"outputs": [], |
| 27 |
"source": [ |
| 28 |
"plot(cars)" |
| 29 |
] |
| 30 |
}, |
| 31 |
{ |
| 32 |
"cell_type": "markdown", |
| 33 |
"metadata": {}, |
| 34 |
"source": [ |
| 35 |
"Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.\n", |
| 36 |
"\n", |
| 37 |
"When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the *Preview* button or press *Ctrl+Shift+K* to preview the HTML file).\n", |
| 38 |
"\n", |
| 39 |
"The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike *Knit*, *Preview* does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed." |
| 40 |
] |
| 41 |
} |
| 42 |
], |
| 43 |
"metadata": { |
| 44 |
"jupytext": { |
| 45 |
"cell_metadata_filter": "-all", |
| 46 |
"main_language": "R", |
| 47 |
"notebook_metadata_filter": "-all" |
| 48 |
} |
| 49 |
}, |
| 50 |
"nbformat": 4, |
| 51 |
"nbformat_minor": 2 |
| 52 |
} |