Commit 7b0c06cd authored by peguerin's avatar peguerin
Browse files

shiny is working yee

parent bba5bd29
......@@ -11,7 +11,7 @@ web-app interface investigating database Barcode of Life [BOLD](http://www.bolds
* miniconda
Instructions to install conda are [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html)
Instructions to install CONDA are [here](https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html)
* CONDA environement with R and [shiny](https://anaconda.org/r/r-shiny)
......@@ -33,4 +33,41 @@ conda remove --name rshiny --all
Check CONDA environments
```
conda info --envs
```
## Display the web-app
First, download this repository.
```bash
git clone https://gitlab.mbb.univ-montp2.fr/reservebenefit/webapp_marine_worldmap_bold.git
cd webapp_marine_worldmap_bold
```
Then activate CONDA environment
```bash
## create the environment the first time
conda env create -f environment.yml
## activate rshiny environment to get R with all required dependencies
conda activate rshiny
```
Finally, run a R session
```bash
R
```
Inside your R session, load `shiny` and then, run the web-app in local
```R
## load shiny library
library('shiny')
## define web browser to use
options(browser="/usr/bin/firefox")
## run shiny web app
runApp(launch.browser=TRUE)
```
\ No newline at end of file
......@@ -2,14 +2,21 @@ name: rshiny
channels:
- r
- conda-forge
- conda-forge/label/gcc7
dependencies:
- r-essentials
- r-shiny
- r-leaflet
- r-htmlwidgets
- r-htmltools
- r-sf
- r-tidyverse
- r-shinythemes
- r-dt
- r-shinydashboard
- r-shiny=1.3.2
- r-rgdal=1.4.4
- r-rgeos=0.5.1
- r-dplyr=0.8.3
- r-leaflet=2.0.3
- r-htmlwidgets=1.3
- r-htmltools=0.3.6
- r-sf=0.8
- r-classint=0.4.2
- r-tidyverse=1.2.1
- r-shinythemes=1.1.2
- r-dt=0.10
- r-shinydashboard=0.7.1
- r-shinycssloaders=0.2.0
- r-xfun=0.5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment