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

Code editors and IDEs

The Windows and OSX 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 (rstudio.com/), which includes project management and version control (including support for Git, which is covered in Chapter 7, Sharing Your Creations), 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). The clockwise move from there will take you to the environment pane (in which the different objects loaded into the session can be seen); the viewing pane containing various options such as Files, Plots, Build, Help, and the console (again, with syntax highlighting). In the middle, there is one of the most useful features of RStudio—the ability to view dataframes. This function also comes with 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
主站蜘蛛池模板: 巧家县| 武乡县| 澄迈县| 梅河口市| 布尔津县| 武清区| 阿图什市| 永济市| 满城县| 文水县| 南昌县| 东明县| 广灵县| 都兰县| 江城| 叶城县| 梓潼县| 上栗县| 苗栗县| 诸城市| 成安县| 库伦旗| 武定县| 济南市| 英吉沙县| 南丰县| 城口县| 陈巴尔虎旗| 襄汾县| 海丰县| 张家川| 阿拉善左旗| 寿光市| 富宁县| 遂昌县| 南木林县| 广南县| 察隅县| 肃宁县| 靖江市| 鹿邑县|