Powerful Tool for compiling R scripts in Ubuntu-Gedit

Source: Internet
Author: User
There are many text editors used to edit R scripts. I personally prefer to use open-source editors (I have mentioned the R editor on RFAQ_cn ). Here we will mainly introduce gedit, a text editor in the GNOME desktop environment under Ubuntu. Although geidt looks as simple as notepad in Windows, it is enough to run general R scripts because the gedit editor can run R Code directly as external commands. Implementation

There are many text editors used to edit R scripts. I personally prefer to use open-source editors (I have mentioned the R editor on RFAQ_cn ). Here we will mainly introduce gedit, a text editor in the GNOME desktop environment under Ubuntu.

Although geidt looks as simple as notepad in Windows, it is enough to run general R scripts because the gedit editor can run R Code directly as external commands. The specific implementation method is as follows:

Select "edit"> "Preferences"> "plug-in"> "external tools" (execute External commands and Shell scripts)

Create a new tool R, write R-no-save-no-restore-q in the command, and write the description and shortcut key (ctrl + r is defined here ).

You can select "selected area" and "select all" for the input. For the output, "display in the lower panel" is better. Of course, this depends on your preferences.

When editing the R code, select the code to be executed, ctrl + r, OK, and output the result, which is very convenient.

 

From: http://www.bjt.name/2009/07/ubuntu-r-scrip-gedit/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.