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,200 points
1,201 views

1 answer to this question.

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
• 58,090 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
1,722 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,460 points
802 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
• 6,290 points
686 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,460 points
348 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,200 points
603 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
506 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,780 points
2,034 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
• 58,090 points
2,603 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
• 58,090 points
1,247 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP