Giter VIP home page Giter VIP logo

r-causalverse's Introduction

r-causalverse

Dockerfile for tidyverse + causal inference related R packages

Running Instructions

  1. Launch and connect to an AWS instance

  2. Install docker on the instance:

  • Update the packages on your instance: $ sudo yum update -y
  • Install Docker: $ sudo amazon-linux-extras install docker
  • Start the Docker Service: $ sudo service docker start
  • Tip- Add the ec2-user to the docker group so you can execute Docker commands without using sudo: $ sudo usermod -a -G docker ec2-user
  1. Move the R scripts or folder from your local machine to the AWS instance

  2. Obtain the docker template for running R on AWS

  • Fork this repository
  • Edit the source directory and password fields in the docker-compose.yml file.

The source directory will contain the filepath of the folder containing all the R scripts you’d like to run on the instance. Finally, set a password which serves as the log in password of RStudio once launched.

Note: The source directory should be based on the EC2 machine and not local machine [e.g. /home/ec2-user/<FOLDER NAME>]

  • Move this repo folder containing the updated docker-compose.yml file to the EC-2 machine
  1. Pull the image from docker hub: docker pull shrabastee/r-causalverse:latest

  2. Install docker-decompose command on EC-2:

  • Copy the appropriate docker-compose binary from GitHub: sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

  • Fix permissions after download: sudo chmod +x /usr/local/bin/docker-compose

  • Verify if download was successful: docker-compose version

  1. Run and configure docker image : docker-compose -f docker-compose.yml run --name rstudio --service-ports rstudio

  2. Open the 8787 web server port on EC2 to host R

  • Go to AWS management console
  • Click the running instance —> Security
  • Add default security group —> edit inbound rules
  • Specify in bound rule: IP version = IPv4; Type = Custom TCP; Port range = 8787
  1. Launch R:
  • Open a new web window and enter URL: http://: 8787 Copy-paste the Public IPv4 DNS address for instance IP above.
  • Enter rstudio as username and password as specified in the docker-compose file.

r-causalverse's People

Contributors

shrabasteebanerjee avatar srosh2000 avatar

Stargazers

Hannes Datta avatar

Watchers

 avatar

r-causalverse's Issues

Missing R packages

  • data.table
  • dplyr
  • tidyr
  • stringr
  • zoo
  • anytime
  • ggplot2
  • stringr
  • tm
  • textstem
  • wordcloud
  • epiDisplay
  • stminsights
  • stm
  • fastText
  • modelsummary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.