Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.43 KB

README.md

File metadata and controls

44 lines (24 loc) · 1.43 KB

Dockerfile of writing paper by R Markdown

This is a repository of Dockerfile including packages and add-ins that are useful for writing articles with R Markdown in Rstudio. This Dockerfile is based on rocker/verse. Installing rstan conducted by the method described in antoine-sachet / rocker-ML.

日本語解説(Japanese)

Maintainer is Yoshihiko Kunisato (ykunisato@psy.senshu-u.ac.jp)

Keywords: psychology, cognitive science, rstudio, rstan, rmarkdown

Usage

  1. Install "Docker Desktop"

  2. Open "terminal"(Mac) or "Command Prompt"(Windows)

  3. Type the following code to pull a Docker container. Change the "password" and "name_of_container" as you like.

Mac

docker run -e PASSWORD=password -p 8787:8787 -v $(pwd):/home/rstudio -d --name paperr ykunisato/paper-r

or

docker run -e PASSWORD=password -e DISABLE_AUTH=true -p 8787:8787 -v $(pwd):/home/rstudio -d --name paperr ykunisato/paper-r

Windows

docker run -e PASSWORD=password -p 8787:8787 -v "%cd%":/home/rstudio -d --name paperr ykunisato/paper-r
  1. Open the web browser and type "http://localhost:8787/" in the URL bar.

  2. You will see the Rstudio on the web browser. Type rstudio in ID column and password that you set in password column.