un-fao / calipseo-shiny

Calipseo is FAO web- based platform for national Fisheries Authorities to streamline management of fisheries data and the production, analysis and reporting of fishery statistics.
1 stars 0 forks source link

[CALR-41] Faciliate the set-up of local shiny configs #41

Closed eblondel closed 6 months ago

eblondel commented 6 months ago

Issue migrated from JIRA: https://sdlc.review.fao.org/jira/browse/CALR-41 Creator/Reporter: Emmanuel Blondel @eblondel Assignee: Emmanuel Blondel @eblondel Priority: Medium Status: Done Date of creation: 2021-12-09T10:31:10.000+0000

The global.R is going to be refactored to ease the local set-up of a given shiny configuration file (yaml file). For that it's very simple, each R developer / tester has to create a file in /shiny-calipseo directory, named .REnviron (no file extension). This file should contain one line like this:

CALIPSEO_SHINY_CONFIG=

Example for Windows:

_CALIPSEO_SHINY_CONFIG=D:/Documents/DEV/Bitbucket/fao/fao-calipseo-stats/shinyconfigs/calipseo_shiny_configSUR.yml

This file is ignored by git, so we avoid polluting each R user environment

To make R taking into account this file, you should restart R

[~alexandre.bennici@fao.org] [~brian.ojok] [~yann.laurent]