PyCharm 2019.3ヘルプ


With the R plugin installed in PyCharm, you can perform various statistical computing using R言語(英語) and use coding assistance, visual debugging, smart running and preview tools, and other popular IDE features.

With the R plugin, you can also get native support for .R files. Such files are marked with the R file icon icon.

R plugin support in PyCharm includes:

  • コーディング支援:

  • ファイルに行った変更の自動保存は、ファイルやプロジェクトを閉じる、IDEを終了するなど、さまざまなイベントによって引き起こされます。

  • Ability to preview data in the graphic and tabular forms.

  • Ability to run and debug R scripts with live variables view.


To start working the R files in in PyCharm:

  1. Download(英語) and install the R language.

  2. Install the R plugin for PyCharm.

  3. 作成 a new R project.

  4. 構成 an R interpreter.

  5. Inspect the set of the installed R packages and install additional packages required for your project.

  6. .R ファイルを開くか作成します。

  7. 実行 the R script.

  8. 分析 , export, and save the results.


When you install the R plugin for PyCharm, you should notice the following user interface elements:

R plugin features

R コンソール

The R コンソール tab appears in the group of the PyCharm tool windows. It enables executing R commands line by line similar to the console provided with the R installation.

Code completion ( Ctrl+Space ) is available as you type commands in the R コンソール . You can preview the values of the declared variables and the execution results in the 変数 area.

Executing commands in the R console



Execute the current statement

Execute the current statement in the one-line console ( Enter ).


Help on executing R scripts.

Console history

Open the R Console History to preview the list of the executed commands.

Add a new R Console

Open a new R コンソール tab.

Soft wrap

Softly wraps lines in the R コンソール

R Graphics , Table View , R HTML Viewer , and R Packages appear in the データ・ビュー tool window. By default, these windows are pinned to the dock and can be previewed one by one. To preview any of these windows simultaneously, change their viewing mode.

R Graphics tool window

In this tool window, you can preview various graphs built with the R-specific data plotting libraries. The window displays all the graphs built within a single execution session that lasts until you close the R コンソール or explicitly terminate the process. The graphs are arranged one on a page.

R Graphics



Previous graphics Next graphics

Go to the previous or next graphics page.


Save the graphics in a .png file.


Zoom in the graphics.


Close the currently selected page.

Clear All

Close all graphics pages.


Open the Graphics device settings dialog to set up the size of the image and its resolution.

Table View

When you analyze tabular data in the 変数 view, you can click the ビュー・テーブル link and preview them in the Table View window. To order values in a particular column, click its header.

mtcars data in the R table view



Export table

Save the table in a .csv file.

Filter data

Filter data in the table columns. Hover over the button to preview the available filters and type the filter criteria under the column header.

Available filters

Organize table in pages. Toggle this button and specify the number of table rows to display on a page: 10, 15, 30, or 100.


With the R HTML tool window you can preview R graphics built with the JavaScript visualization libraries.

Rendering shared graphics in the R HTML window

R packages

Install, uninstall, and update R packages in the R packages window. It lists all the installed R packages.

The list of the installed R packages



Install a package

Install an R package from the list of the available packages.

Uninstall the package

Uninstall the selected package.

Upgrade the package

Upgrade the selected package to the latest available version. This button is enabled only when there is a newer version of this package.

Upgrade all packages

Upgrade all packages to the latest available versions. This button is enabled if at least for one of the installed packages there is a newer version.

Refresh the package list

Update the 最新バージョン column by fetching the latest available versions for the installed packages.

R files toolbar

When you open an R file in the editor, the following toolbar appears. Use it to run and debug R code.

R file toolbar



Execute the R file

Execute the R file.

Debug the R file

Debug the R file

Run selection

Execute the selected code fragment

Debug selection

Debug the selected code fragment


The toolbar appears the editor window when you open an .rmd file.

r markdown toolbar




Select the directory for the generated HTML output. By default, the project directory is selected. To alter the location, select カスタム from the list and specify any directory in your file system.

Render document

Renders the document in the HTML format. The filename corresponds to name of the R Markdown file. The location of the generated file is defined by the option selection in the 出力ディレクトリー list.

Open document

Opens the generated HTML document. Note that you should build the output first ( Render document ).

Run All Chunks

実行 all the executable R chunks in the file. During the execution the icon changes its state to Stop execution .

Add a new R chunk

挿入 a new chunk for R code below the current chunk.

Soft wrap

Softly wraps lines in the editor.

Refer to the following topics for more information about R plugin support in PyCharm:

最終更新日: 2019年12月5日