官术网_书友最值得收藏!

Code editors and IDEs

The Windows and OS X versions of R both come with built-in code editors, which allow code to be edited, saved, and sent to the R console. It's hard to recommend that you use this because it is rather primitive. Most users would be best served by RStudio (found at rstudio.com/), which includes project management and version control (including support for Git, which is covered in Chapter 9, Persistent Storage and Sharing Shiny Applications), the viewing of data and graphics, code completion, package management, and many other features. The following is an illustrative screenshot of an RStudio session:

As can be seen, in the top-left corner, there is the code-editing pane (with syntax highlighting). Moving clockwise from there will take you to the environment pane (in which you can see the different objects that are loaded into the session), which is the viewing pane containing various options such as Files, Plots, Build, Help, and finally, at the bottom left, the Console. In the middle, there is one of the most useful features of RStudio, the ability to view dataframes. This view can be created by clicking a dataframe in the Environment panel at the top right. This function also enables sorting and filtering by column.

However, if you already use an IDE for other types of code, it is quite likely that R can be well integrated into it. Examples of IDEs with good R integration include the following:

  • Emacs with the Emacs Speaks Statistics plugin
  • Vim with the Vim-R plugin
  • Eclipse with the StatET plugin
主站蜘蛛池模板: 威宁| 桓台县| 泸溪县| 资中县| 和林格尔县| 永宁县| 秀山| 抚顺市| 桦甸市| 昌图县| 青浦区| 成安县| 清苑县| 卓尼县| 周至县| 蛟河市| 华容县| 乐安县| 绍兴县| 青州市| 宾阳县| 庆云县| 兴义市| 玛多县| 东乌珠穆沁旗| 湘阴县| 荆州市| 张北县| 鞍山市| 泾川县| 平湖市| 池州市| 南澳县| 万盛区| 太康县| 商河县| 阿瓦提县| 望江县| 无锡市| 湟源县| 乳山市|