SlideShare a Scribd company logo
1 of 31
USING R/RSTUDIO ON AWS
Barry DeCicco (bdecicco2001@yahoo.com)
Ann Arbor R Users’ Group Meeting
February 13, 2020
WHY USE AWS?
 It’s the most popular cloud package – you will encounter it
at work.
 You can access data sets and run tasks too large for your
personal computer.
 You can leave things running, no matter what you are
doing with your personal computer.
 It’s free for starting usage.
CONTENTS
 How to set up on AWS.
 Remotely accessing AWS.
 Rstudio launching.
 Moving data with Dropbox.
ASSUMPTION: You already have an account with AWS and with
Dropbox.
IMPORTANT NOTE
 The method illustrated here is a low-security method.
 AWS prefers a method using key files, but insists on locking down
the key file on the user’s machine.
 In Windows, this is extremely hard to do, and generally does not
work.
 I’m working on this, and will update this presentation once I have
a consistent working method.
HOW TO SET UP ON AWS
STEPS
(FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR
FREE’)
 Have an account in Dropbox ready.
 Login to AWS or set up account.
 Choose region for virtual machine (from external website).
 This site will redirect you to the AWS EC2 Management Console (‘EC2
is ‘Elastic Compute’).
 Go through Launch Instance Wizard
 Skip the key file part (it’s a pain; deal with it later)
STEPS
(FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR
FREE’)
 Copy the IPv4 Public IP into a new browser window to open Rstudio
on ASW.
 Login with ‘rstudio’/your Instance ID.
 Set up Dropbox access
(https://www.edamamecourse.org/docs/using_dropbox_on_your_ec2_m
achine.html)
HOW TO RUN RSTUDIO ON AWS IN
UNDER 3 MINUTES FOR FREE
Step 1:Login to your AWS
account (or create one, if
you don’t have one)
.
STEP 2: GO TO LOUIS
ASLETT’S WEBSITE,
CHOOSE THE REGION
YOU WANT YOUR
VIRTUAL MACHINES
TO STAY, AND CLICK
ON THE LINK NEXT TO
IT (E.G., AMI-
02BF650155C44B475
FOR US WEST, N.
CALIFORNIA). THE
LINK WILL DIRECTLY
LEAD YOU TO THE EC2
MANAGEMENT
CONSOLE.
STEP 3: CLICK
THROUGH THE
LAUNCH INSTANCE
WIZARD. ALMOST
EVERYTHING IS
ALREADY PRE-FILLED
OUT AND YOUR
SCREEN SHOULD
LOOK LIKE THE
SCREENSHOTS BELOW.
DON’T PRESS “REVIEW
AND LAUNCH” YET.
WE NEED TO GO
THROUGH THE
WHOLE PROCESS
ONCE JUST TO BE
SURE, SO PRESS
“NEXT: …”.
STEP 4: CONFIGURE
INSTANCE DETAILS:
KEEP DEFAULTS, PRESS
“NEXT: …”.
STEP 5: ADD
STORAGE: KEEP
DEFAULTS, PRESS
“NEXT: …”.
STEP 5: ADD TAGS:
KEEP DEFAULTS, PRESS
“NEXT: …”.
STEP 6: CONFIGURE
SECURITY: CLICK ON
“ADD RULE”, CHOOSE
HTTP AND CHANGE
“SOURCE” FROM
CUSTOM TO
ANYWHERE. NOW IT
SHOULD LOOK LIKE
THE SCREENSHOT
BELOW. “NEXT: …”.
STEP 7: JUST PRESS
“REVIEW AND
LAUNCH” AND
“LAUNCH” ON THE
NEXT PAGE. THE FINAL
STEP IS TO CHOOSE A
SSH SECURITY KEY.
WHILE IT’S NOT THE
MOST SECURE
SETTING, THE FASTEST
WILL BE TO CHOOSE
TO PROCEED
WITHOUT A KEY. JUST
COPY THE SETTING
FROM THE NEXT
SCREENSHOT AND
PRESS “LAUNCH
INSTANCES”
STEP 7: JUST PRESS
“REVIEW AND
LAUNCH” AND
“LAUNCH” ON THE
NEXT PAGE. THE FINAL
STEP IS TO CHOOSE A
SSH SECURITY KEY.
WHILE IT’S NOT THE
MOST SECURE
SETTING, THE FASTEST
WILL BE TO CHOOSE
TO PROCEED
WITHOUT A KEY. JUST
COPY THE SETTING
FROM THE NEXT
SCREENSHOT AND
PRESS “LAUNCH
INSTANCES”
IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO
START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL
UP THE DASHBOARD.
IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO
START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL
UP THE DASHBOARD.
NOTE THE “IPV4 PUBLIC
IP” AND “INSTANCE ID”.
COPY THE IPV4 PUBLIC IP
AND PASTE IT INTO THE
ADDRESS OF A NEW
BROWSER WINDOW
NOTE THE “IPv4 Public
IP”. COPY THAT AND
PASTE IT INTO THE
ADDRESS OF A NEW
BROWSER WINDOW.
YOUR USERNAME IS
‘rstudio’ AND THE
PASSWORD IS THE
“Instance ID”
CONNECTING TO DROPBOX
If you chose to use the key pair, and were able to set up the
permissions correctly, then you can SSH and SFTP to your
instance.
If not, you can use Dropbox to sync folders.
CONNECTING TO DROPBOX
If you chose to use the key
pair, and were able to set
up the permissions
correctly, then you can SSH
and SFTP to your instance.
If not, you can use
Dropbox to sync folders.
Run the pre-existing
commands in RStudio
CONNECTING TO DROPBOX
If you chose to use the key
pair, and were able to set
up the permissions
correctly, then you can SSH
and SFTP to your instance.
If not, you can use
Dropbox to sync folders.
Run the pre-existing
commands in Rstudio –
ONE AT A TIME
LAUNCHING AN AWS
SESSION
Credits
Chuck Anderson, for walking me through the secure
connection method.
Medium.com, whose series ‘towards Data Science’
(https://towardsdatascience.com/) has been an invaluable
source of information, explanations and source code.
QUESTIONS?
REFERENCES – AWS
 https://towardsdatascience.com/how-to-run-rstudio-on-aws-in-
under-3-minutes-for-free-65f8d0b6ccda
 https://www.datacamp.com/community/tutorials/aws-ec2-beginner-
tutorial
 http://www.win-vector.com/blog/2018/01/setting-up-rstudio-server-
quickly-on-amazon-ec2/
 https://www.sicara.ai/blog/2017-12-07-speed-up-code-rstudio-aws
 http://strimas.com/r/rstudio-cloud-1/
 https://winscp.net/eng/docs/guide_amazon_ec2
REFERENCES (CONTINUED)
Key File Problems:
https://superuser.com/questions/1296024/window
s-ssh-permissions-for-private-key-are-too-open
https://superuser.com/questions/1309447/how-to-
secure-ssh-private-key-on-windows-10/1311633

More Related Content

What's hot

How to launch an aws ec2 instance
How to launch an aws ec2 instanceHow to launch an aws ec2 instance
How to launch an aws ec2 instanceAndrea Cirillo
 
WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library) WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library) Chris Gates
 
WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018Chris Gates
 
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourgPHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourgQuentin Adam
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkJulien SIMON
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Corley S.r.l.
 
mykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instancemykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instanceDariia Seimova
 
GUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between RegionsGUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between RegionsRob Linton
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)Julien SIMON
 
There is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureThere is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureSonatype
 
IDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet ServerlessIDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet ServerlessMassimo Ferre'
 
AWS | NAT Gateway Configuration
AWS | NAT Gateway ConfigurationAWS | NAT Gateway Configuration
AWS | NAT Gateway ConfigurationMohan Reddy
 
AWS | VPC Peering
AWS | VPC PeeringAWS | VPC Peering
AWS | VPC PeeringMohan Reddy
 
Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013Quentin Adam
 
AWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorksAWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorksAmazon Web Services
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambdaAdam Book
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWSManish Jain
 

What's hot (20)

How to launch an aws ec2 instance
How to launch an aws ec2 instanceHow to launch an aws ec2 instance
How to launch an aws ec2 instance
 
WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library) WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library)
 
WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018
 
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourgPHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic Beanstalk
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
 
mykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instancemykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instance
 
GUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between RegionsGUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between Regions
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)
 
There is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureThere is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless Architecture
 
Project final pres
Project final presProject final pres
Project final pres
 
IDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet ServerlessIDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet Serverless
 
AWS | NAT Gateway Configuration
AWS | NAT Gateway ConfigurationAWS | NAT Gateway Configuration
AWS | NAT Gateway Configuration
 
AWS | VPC Peering
AWS | VPC PeeringAWS | VPC Peering
AWS | VPC Peering
 
Docker Paris #28
Docker Paris #28Docker Paris #28
Docker Paris #28
 
Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013
 
Multi-Cloud testing
Multi-Cloud testingMulti-Cloud testing
Multi-Cloud testing
 
AWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorksAWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorks
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambda
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
 

Similar to Using RStudio on AWS

(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014Amazon Web Services
 
Continuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:InventContinuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:InventJohn Schneider
 
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Amazon Web Services
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecturejoaquincasares
 
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...Alexander Dean
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampBigDataCamp
 
CON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSCON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSAmazon Web Services
 
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Amazon Web Services
 
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW Kel
 
WordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAWWordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAWMatt Pilarski
 
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...Amazon Web Services
 
Setting up JupyterHub on AWS
Setting up JupyterHub on AWSSetting up JupyterHub on AWS
Setting up JupyterHub on AWSMel Denisse
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2Katy Slemon
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethremayssat
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howtomailbhargav
 
From Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at NetflixFrom Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at NetflixDianne Marsh
 

Similar to Using RStudio on AWS (20)

(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
 
Continuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:InventContinuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:Invent
 
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
 
PaaSing Your Code Around
PaaSing Your Code AroundPaaSing Your Code Around
PaaSing Your Code Around
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecture
 
Masterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpacesMasterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpaces
 
WPParra AWS
WPParra AWSWPParra AWS
WPParra AWS
 
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
 
CON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSCON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWS
 
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
 
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
 
WordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAWWordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAW
 
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
 
Setting up JupyterHub on AWS
Setting up JupyterHub on AWSSetting up JupyterHub on AWS
Setting up JupyterHub on AWS
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
 
Workspaces overview
Workspaces overviewWorkspaces overview
Workspaces overview
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
 
From Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at NetflixFrom Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at Netflix
 

More from Barry DeCicco

Easy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtraEasy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtraBarry DeCicco
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Barry DeCicco
 
Beginning text analysis
Beginning text analysisBeginning text analysis
Beginning text analysisBarry DeCicco
 
Up and running with python
Up and running with pythonUp and running with python
Up and running with pythonBarry DeCicco
 
Calling python from r
Calling python from rCalling python from r
Calling python from rBarry DeCicco
 
Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)Barry DeCicco
 
Calling r from sas (msug meeting, feb 17, 2018) revised
Calling r from sas (msug meeting, feb 17, 2018)   revisedCalling r from sas (msug meeting, feb 17, 2018)   revised
Calling r from sas (msug meeting, feb 17, 2018) revisedBarry DeCicco
 

More from Barry DeCicco (7)

Easy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtraEasy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtra
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06
 
Beginning text analysis
Beginning text analysisBeginning text analysis
Beginning text analysis
 
Up and running with python
Up and running with pythonUp and running with python
Up and running with python
 
Calling python from r
Calling python from rCalling python from r
Calling python from r
 
Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)
 
Calling r from sas (msug meeting, feb 17, 2018) revised
Calling r from sas (msug meeting, feb 17, 2018)   revisedCalling r from sas (msug meeting, feb 17, 2018)   revised
Calling r from sas (msug meeting, feb 17, 2018) revised
 

Recently uploaded

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Recently uploaded (20)

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 

Using RStudio on AWS

  • 1. USING R/RSTUDIO ON AWS Barry DeCicco (bdecicco2001@yahoo.com) Ann Arbor R Users’ Group Meeting February 13, 2020
  • 2. WHY USE AWS?  It’s the most popular cloud package – you will encounter it at work.  You can access data sets and run tasks too large for your personal computer.  You can leave things running, no matter what you are doing with your personal computer.  It’s free for starting usage.
  • 3. CONTENTS  How to set up on AWS.  Remotely accessing AWS.  Rstudio launching.  Moving data with Dropbox. ASSUMPTION: You already have an account with AWS and with Dropbox.
  • 4. IMPORTANT NOTE  The method illustrated here is a low-security method.  AWS prefers a method using key files, but insists on locking down the key file on the user’s machine.  In Windows, this is extremely hard to do, and generally does not work.  I’m working on this, and will update this presentation once I have a consistent working method.
  • 5. HOW TO SET UP ON AWS
  • 6. STEPS (FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE’)  Have an account in Dropbox ready.  Login to AWS or set up account.  Choose region for virtual machine (from external website).  This site will redirect you to the AWS EC2 Management Console (‘EC2 is ‘Elastic Compute’).  Go through Launch Instance Wizard  Skip the key file part (it’s a pain; deal with it later)
  • 7. STEPS (FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE’)  Copy the IPv4 Public IP into a new browser window to open Rstudio on ASW.  Login with ‘rstudio’/your Instance ID.  Set up Dropbox access (https://www.edamamecourse.org/docs/using_dropbox_on_your_ec2_m achine.html)
  • 8. HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE Step 1:Login to your AWS account (or create one, if you don’t have one) .
  • 9. STEP 2: GO TO LOUIS ASLETT’S WEBSITE, CHOOSE THE REGION YOU WANT YOUR VIRTUAL MACHINES TO STAY, AND CLICK ON THE LINK NEXT TO IT (E.G., AMI- 02BF650155C44B475 FOR US WEST, N. CALIFORNIA). THE LINK WILL DIRECTLY LEAD YOU TO THE EC2 MANAGEMENT CONSOLE.
  • 10. STEP 3: CLICK THROUGH THE LAUNCH INSTANCE WIZARD. ALMOST EVERYTHING IS ALREADY PRE-FILLED OUT AND YOUR SCREEN SHOULD LOOK LIKE THE SCREENSHOTS BELOW. DON’T PRESS “REVIEW AND LAUNCH” YET. WE NEED TO GO THROUGH THE WHOLE PROCESS ONCE JUST TO BE SURE, SO PRESS “NEXT: …”.
  • 11. STEP 4: CONFIGURE INSTANCE DETAILS: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 12. STEP 5: ADD STORAGE: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 13. STEP 5: ADD TAGS: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 14. STEP 6: CONFIGURE SECURITY: CLICK ON “ADD RULE”, CHOOSE HTTP AND CHANGE “SOURCE” FROM CUSTOM TO ANYWHERE. NOW IT SHOULD LOOK LIKE THE SCREENSHOT BELOW. “NEXT: …”.
  • 15. STEP 7: JUST PRESS “REVIEW AND LAUNCH” AND “LAUNCH” ON THE NEXT PAGE. THE FINAL STEP IS TO CHOOSE A SSH SECURITY KEY. WHILE IT’S NOT THE MOST SECURE SETTING, THE FASTEST WILL BE TO CHOOSE TO PROCEED WITHOUT A KEY. JUST COPY THE SETTING FROM THE NEXT SCREENSHOT AND PRESS “LAUNCH INSTANCES”
  • 16. STEP 7: JUST PRESS “REVIEW AND LAUNCH” AND “LAUNCH” ON THE NEXT PAGE. THE FINAL STEP IS TO CHOOSE A SSH SECURITY KEY. WHILE IT’S NOT THE MOST SECURE SETTING, THE FASTEST WILL BE TO CHOOSE TO PROCEED WITHOUT A KEY. JUST COPY THE SETTING FROM THE NEXT SCREENSHOT AND PRESS “LAUNCH INSTANCES”
  • 17. IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL UP THE DASHBOARD.
  • 18. IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL UP THE DASHBOARD.
  • 19. NOTE THE “IPV4 PUBLIC IP” AND “INSTANCE ID”. COPY THE IPV4 PUBLIC IP AND PASTE IT INTO THE ADDRESS OF A NEW BROWSER WINDOW
  • 20. NOTE THE “IPv4 Public IP”. COPY THAT AND PASTE IT INTO THE ADDRESS OF A NEW BROWSER WINDOW. YOUR USERNAME IS ‘rstudio’ AND THE PASSWORD IS THE “Instance ID”
  • 21. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders.
  • 22. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders. Run the pre-existing commands in RStudio
  • 23. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders. Run the pre-existing commands in Rstudio – ONE AT A TIME
  • 24.
  • 25.
  • 27.
  • 28. Credits Chuck Anderson, for walking me through the secure connection method. Medium.com, whose series ‘towards Data Science’ (https://towardsdatascience.com/) has been an invaluable source of information, explanations and source code.
  • 30. REFERENCES – AWS  https://towardsdatascience.com/how-to-run-rstudio-on-aws-in- under-3-minutes-for-free-65f8d0b6ccda  https://www.datacamp.com/community/tutorials/aws-ec2-beginner- tutorial  http://www.win-vector.com/blog/2018/01/setting-up-rstudio-server- quickly-on-amazon-ec2/  https://www.sicara.ai/blog/2017-12-07-speed-up-code-rstudio-aws  http://strimas.com/r/rstudio-cloud-1/  https://winscp.net/eng/docs/guide_amazon_ec2
  • 31. REFERENCES (CONTINUED) Key File Problems: https://superuser.com/questions/1296024/window s-ssh-permissions-for-private-key-are-too-open https://superuser.com/questions/1309447/how-to- secure-ssh-private-key-on-windows-10/1311633