{"id":175858,"date":"2020-09-25T15:37:00","date_gmt":"2020-09-25T19:37:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/trading-lessons\/installing-r-and-rstudio\/"},"modified":"2023-04-25T20:55:54","modified_gmt":"2023-04-26T00:55:54","slug":"installing-r-and-rstudio","status":"publish","type":"trading-lessons","link":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/","title":{"rendered":"Installing R and RStudio"},"content":{"rendered":"<p>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.<\/p>\n<h4>In this lesson, you would:<\/h4>\n<ul>\n<li>Learn to download and install R<\/li>\n<li>Learn to download and install RStudio<\/li>\n<\/ul>\n<h3>Windows Users<\/h3>\n<h4>To install R<\/h4>\n<ul>\n<li>Open an internet browser and go to www.r-project.org.<\/li>\n<li>Click the &#8220;download R&#8221; link shown in the first paragraph under &#8220;Getting Started.<\/li>\n<li>Select a CRAN location (a mirror site) and click the corresponding link.<\/li>\n<li>Click on the &#8220;Download R for Windows&#8221; link shown at the top of the page.<\/li>\n<li>Click on the &#8220;install R for the first time&#8221; link shown at the top of the page.<\/li>\n<li>Click &#8220;Download R 3.4.2 for Windows&#8221; and save the executable file on your computer.<\/li>\n<li>Run the downloaded .exe file and follow the installation instructions.<\/li>\n<li>Now that R is installed, you need to download and install RStudio.<\/li>\n<\/ul>\n<h4>To install RStudio<\/h4>\n<ul>\n<li>Go to www.rstudio.com and click on the &#8220;Download RStudio&#8221; button.<\/li>\n<li>Click on the &#8220;Download&#8221; button under RStudio for Desktop.<\/li>\n<li>Click on the version recommended for your system, or the latest Windows version, and save the executable file.<\/li>\n<li>Run the downloaded .exe file and follow the installation instructions.<\/li>\n<\/ul>\n<h3>Mac Users<\/h3>\n<h4>To install R<\/h4>\n<ul>\n<li>Open an internet browser and go to www.r-project.org.<\/li>\n<li>Click the &#8220;download R&#8221; link shown in the first paragraph under &#8220;Getting Started.<\/li>\n<li>Select a CRAN location (a mirror site) and click the corresponding link.<\/li>\n<li>Click on the &#8220;Download R for (Mac) OS X&#8221; link shown at the top of the page.<\/li>\n<li>Click on the file containing the latest version of R under &#8220;Files&#8221;<\/li>\n<li>Save the .pkg file, double-click it to open, and follow the installation instructions.<\/li>\n<li>Now that R is installed, you need to download and install RStudio.<\/li>\n<\/ul>\n<h4>To install RStudio<\/h4>\n<ul>\n<li>Go to www.rstudio.com and click on the &#8220;Download RStudio&#8221; button.<\/li>\n<li>Click on the &#8220;Download&#8221; button under RStudio for Desktop.<\/li>\n<li>Click on the version recommended for your system, or the latest Mac version, and save the .dmg file on your computer.<\/li>\n<li>Double-click it to open, and then drag and drop it to your applications folder.<\/li>\n<\/ul>\n<h4>Additional Resources<\/h4>\n<p><a href=\"https:\/\/cran.r-project.org\/doc\/FAQ\/R-FAQ.html\">Frequently Asked Questions on R <\/a><\/p>\n<p><a href=\"https:\/\/support.rstudio.com\/hc\/en-us\/categories\/202638197-Frequently-Asked-Questions\">Frequently Asked Questions on RStudio<\/a><\/p>\n<p>Note \u2013 The IBrokers package provides native R access to Interactive Brokers Trader Workstation API<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":688,"featured_media":221444,"parent":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"footnotes":""},"contributors-categories":[13654],"traders-academy":[13126,13128,13132],"class_list":{"0":"post-175858","1":"trading-lessons","2":"type-trading-lessons","3":"status-publish","4":"has-post-thumbnail","6":"contributors-categories-quantinsti","7":"traders-academy-intermediate-trading","8":"traders-academy-level","9":"traders-academy-trading-lesson"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Archives | Traders&#039; Academy | IBKR Campus<\/title>\n<meta name=\"description\" content=\"In this lesson, we will show you how to install R and RStudio.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/trading-lessons\/175858\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing R and RStudio\" \/>\n<meta property=\"og:description\" content=\"In this lesson, we will show you how to install R and RStudio.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-26T00:55:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Installing R and RStudio\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/\",\n\t            \"name\": \"Installing R and RStudio\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/mqdefault-11.jpg\",\n\t            \"datePublished\": \"2020-09-25T19:37:00+00:00\",\n\t            \"dateModified\": \"2023-04-26T00:55:54+00:00\",\n\t            \"description\": \"In this lesson, we will show you how to install R and RStudio.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/mqdefault-11.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/09\\\/mqdefault-11.jpg\",\n\t            \"width\": 320,\n\t            \"height\": 180,\n\t            \"caption\": \"Installing R and RStudio\"\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/trading-lessons\\\/installing-r-and-rstudio\\\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Academy Lessons\",\n\t                    \"item\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/trading-lessons\\\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"Installing R and RStudio\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Archives | Traders' Academy | IBKR Campus","description":"In this lesson, we will show you how to install R and RStudio.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/trading-lessons\/175858\/","og_locale":"en_US","og_type":"article","og_title":"Installing R and RStudio","og_description":"In this lesson, we will show you how to install R and RStudio.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/","og_site_name":"IBKR Campus US","article_modified_time":"2023-04-26T00:55:54+00:00","twitter_card":"summary_large_image","twitter_title":"Installing R and RStudio","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/","url":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/","name":"Installing R and RStudio","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/mqdefault-11.jpg","datePublished":"2020-09-25T19:37:00+00:00","dateModified":"2023-04-26T00:55:54+00:00","description":"In this lesson, we will show you how to install R and RStudio.","breadcrumb":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/mqdefault-11.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/09\/mqdefault-11.jpg","width":320,"height":180,"caption":"Installing R and RStudio"},{"@type":"BreadcrumbList","@id":"https:\/\/www.interactivebrokers.com\/campus\/trading-lessons\/installing-r-and-rstudio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Academy Lessons","item":"https:\/\/ibkrcampus.com\/campus\/trading-lessons\/"},{"@type":"ListItem","position":2,"name":"Installing R and RStudio"}]},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"}]}},"_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/trading-lessons\/175858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/trading-lessons"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/trading-lessons"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/688"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=175858"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/trading-lessons\/175858\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/221444"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=175858"}],"wp:term":[{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=175858"},{"taxonomy":"traders-academy","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/traders-academy?post=175858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}