First install Docker Toolbox
Then create local folders
- Create a new folder for data, we assume path is ~/Documents/data, if you followed the instructions in phileas-condemine/hackathon_nov2017 you might already have this folder
- open cmd
- cd Documents
- mkdir data
- Create a folder tm, we assume path is ~/Documents/tm
- mkdir tm
- cd tm
- git clone https://github.com/phileas-condemine/text-mining.git
then run a rstudio docker image from the Docker Quickstart Terminal
- you may need to stop your current container
- docker stop practice_hackathon
- docker stop keras_demo
- docker run -d -v ~/Documents/tm/:/home/rstudio/Documents -v ~/Documents/data/:/home/rstudio/data -p 8787:8787 --name text_mining rocker/rstudio
- then install libxml2 on your container typing in the Docker Quickstart Terminal
- docker exec -it text_mining apt-get update
- docker exec -it text_mining apt-get install -y libxml2-dev
- docker exec -it text_mining apt-get install zlib1g-dev
- docker exec -it text_mining apt-get install -y gsl-bin libgsl0-dev
- user : rstudio
- password : rstudio
- open text_mining.Rpres
- run the chunk related to packages
- check the preview