{ "cells": [ { "cell_type": "raw", "metadata": {}, "source": [ "---\n", "title: \"R Notebook\"\n", "output: html_notebook\n", "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code. \n", "\n", "Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Ctrl+Shift+Enter*. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "plot(cars)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Add a new chunk by clicking the *Insert Chunk* button on the toolbar or by pressing *Ctrl+Alt+I*.\n", "\n", "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", "\n", "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." ] } ], "metadata": { "jupytext": { "cell_metadata_filter": "-all", "main_language": "R", "notebook_metadata_filter": "-all" } }, "nbformat": 4, "nbformat_minor": 2 }