Skip to content

Latest commit

 

History

History
30 lines (29 loc) · 1.29 KB

PEA_installation_and_quickly_start.md

File metadata and controls

30 lines (29 loc) · 1.29 KB

PEA installation

rstudio version

docker pull malab/pea:v1.2_rstudio

R version

For Mac OS X and Linux operating systems, open the terminal, for Windows operating system, open CMD. Typing the following command:

# Pull PEA from Docker Hub
$ docker pull malab/pea:v1.1

Quickly start

Once PEA is installed successfully, type the following command to start PEA:

  • For rstudio version
docker run -d -p 8787:8787 -v /host directory of dataset:/home/rstudio -e ROOT=TRUE -e PASSWORD=pea malab/pea:v1.2_rstudio

Then an rstudio-server with pre-installed PEA can be accessed via: http://localhost:8787 (Username: rstudio; password: pea) rstudio

  • For R version
$ docker run -it -v /host directory of dataset:/home/data malab/pea R  

Note: Supposing that users’ private dataset is located in directory /home/test, then change the words above (/host directory of dataset) to host directory (/home/test_)

library(PEA)  
setwd("/home/data/")  

Important: the directory (/home/data/) is a virtual directory in PEA Docker image. In order to use private dataset more easily, the parameter “-v” is strongly recommended to mount host directory of dataset to PEA image.