Installing R packages in rstudio on EC2

0 votes

Can you install R packages on AWS and use R on AWS EC2

May 29, 2018 in Cloud Computing by brat_1
• 7,080 points
23 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Login to your account and then run these commands one at a time

sudo useradd rstudio

sudo mkdir /home/rstudio

sudo passwd rstudio

sudo chmod -R 0777 /home/rstudio

#update all files

sudo apt-get update

sudo apt-get upgrade

#add cran mirror

sudo vi /etc/apt/sources.list.d/sources.list

#Add following line

deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu precise/

#update files

sudo apt-get update

#install R w/o verification

sudo apt-get install r-base

If you want to use R to connect to any web data/API's

#install in order to use RCurl & XML

sudo aptitude install libcur14-openss1-dev

sudo apt-get install libxml12-dev

Install R studio server

sudo apt-get install gdebi-core

sudo apt-get install libapparmor1

#change to a writable directory

#dowload & install Rstudio server

cd /tmp

wget http://download2.rstudio.org/rstudio-server-0.97.336-amd64.deb

sudo gdebi rstudio-server-0.97.336-amd64.deb

Follow these steps and you are good to go. After this you can install a db of your choice or use AWS aurora.

Once you’ve installed the above commands, you can now access RStudio through your local browser. Navigate to the Public DNS of your image on port 8787, similar to:

http://ec2-50-19-18-120.compute-1.amazonaws.com:8787

The login and password will be the values you used in the image creation process (I used rstudio as my username above).

answered Aug 10, 2018 by Priyaj
• 56,120 points

edited Aug 10, 2018 by Priyaj

Related Questions In Cloud Computing

+1 vote
5 answers

Java 8 application on EC2

This set of command will serve the ...READ MORE

answered Oct 25, 2018 in Cloud Computing by gionete
17 views
0 votes
1 answer

Can Java Enterprise Edition applications on AWS EC2

It would be good if you start ...READ MORE

answered May 15, 2018 in Cloud Computing by Meci Matt
• 9,400 points
57 views
+1 vote
2 answers

How does Elastic Beanstalk and EC2 contribute to automation in AWS?

I hope this helps AWS Elastic Beanstalk is the ...READ MORE

answered Jul 26, 2018 in Cloud Computing by code_ninja
• 5,790 points
43 views
0 votes
1 answer

Are there services on AWS that help in better content creation?

Amazon WorkDocs is a secure, fully managed, ...READ MORE

answered Sep 6, 2018 in Cloud Computing by Meci Matt
• 9,400 points
10 views
0 votes
1 answer

WHat are different types of EC2 instances in AWS?

Please refer the link below this should ...READ MORE

answered Oct 3, 2018 in Cloud Computing by brat_1
• 7,080 points
21 views
0 votes
1 answer

Can someone brief on Topic modelling in AWS?

Topic Modeling identifies relevant terms or topics ...READ MORE

answered Nov 13, 2018 in Cloud Computing by SIMON
12 views
+3 votes
3 answers

Is there a way to install apache drill on an EMR cluster on AWS that is already Running?

It looks to be trying to get ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,730 points
213 views
+3 votes
3 answers

Is it possible to delete a API in AWS API Gateway?

Yes, it is possible to delete an ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,080 points
410 views
+1 vote
3 answers

AWS EC2: Is it possible to edit httpd.conf file in

It would be prompting you a alert, ...READ MORE

answered Aug 17, 2018 in Cloud Computing by Priyaj
• 56,120 points
426 views
+4 votes
4 answers

AWS S3 cli isn’t working on Windows server

The error message has nothing to do ...READ MORE

answered Aug 20, 2018 in Cloud Computing by Priyaj
• 56,120 points
95 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.