This website uses cookies to collect usage information in order to offer a better browsing experience. By browsing this site or by clicking on the "ACCEPT COOKIES" button you accept our Cookie Policy.

Duration: 3:37

Contributor: QuantInsti

Level: Intermediate

In the previous lesson, we introduced R and RStudio and the benefits of trading using the R programming language. In this lesson, we will show you how to install R and RStudio.

Read More

Study Notes:

In the previous lesson, you got a brief introduction to R, RStudio and the benefits of trading using the R programming language. In this lesson, we list down the steps for easy installation of R and RStudio.

In this lesson, you would:

  • Learn to download and install R
  • Learn to download and install RStudio

Windows Users

To install R

  • Open an internet browser and go to www.r-project.org.
  • Click the “download R” link shown in the first paragraph under “Getting Started.
  • Select a CRAN location (a mirror site) and click the corresponding link.
  • Click on the “Download R for Windows” link shown at the top of the page.
  • Click on the “install R for the first time” link shown at the top of the page.
  • Click “Download R 3.4.2 for Windows” and save the executable file on your computer.
  • Run the downloaded .exe file and follow the installation instructions.
  • Now that R is installed, you need to download and install RStudio.

To install RStudio

  • Go to www.rstudio.com and click on the “Download RStudio” button.
  • Click on the “Download” button under RStudio for Desktop.
  • Click on the version recommended for your system, or the latest Windows version, and save the executable file.
  • Run the downloaded .exe file and follow the installation instructions.

Mac Users

To install R

  • Open an internet browser and go to www.r-project.org.
  • Click the “download R” link shown in the first paragraph under “Getting Started.
  • Select a CRAN location (a mirror site) and click the corresponding link.
  • Click on the “Download R for (Mac) OS X” link shown at the top of the page.
  • Click on the file containing the latest version of R under “Files”
  • Save the .pkg file, double-click it to open, and follow the installation instructions.
  • Now that R is installed, you need to download and install RStudio.

To install RStudio

  • Go to www.rstudio.com and click on the “Download RStudio” button.
  • Click on the “Download” button under RStudio for Desktop.
  • Click on the version recommended for your system, or the latest Mac version, and save the .dmg file on your computer.
  • Double-click it to open, and then drag and drop it to your applications folder.

Additional Resources

Frequently Asked Questions on R

Frequently Asked Questions on RStudio

Note – The IBrokers package provides native R access to Interactive Brokers Trader Workstation API

Disclosure: Interactive Brokers

The analysis in this material is provided for information only and is not and should not be construed as an offer to sell or the solicitation of an offer to buy any security. To the extent that this material discusses general market activity, industry or sector trends or other broad-based economic or political conditions, it should not be construed as research or investment advice. To the extent that it includes references to specific securities, commodities, currencies, or other instruments, those references do not constitute a recommendation by IBKR to buy, sell or hold such investments. This material does not and is not intended to take into account the particular financial conditions, investment objectives or requirements of individual customers. Before acting on this material, you should consider whether it is suitable for your particular circumstances and, as necessary, seek professional advice.

Supporting documentation for any claims and statistical information will be provided upon request.

Any stock, options or futures symbols displayed are for illustrative purposes only and are not intended to portray recommendations.

Disclosure: R API Disclosure

This software is in no way affiliated, endorsed, or approved by Interactive Brokers or any of its affiliates. It comes with absolutely no warranty and should not be used in actual trading unless the user can read and understand the source. IBrokers is a pure R implementation of the TWS API.

trading top