Shiny app for dataset uploading, checking and visualization
Main Shiny app: shiny.ecoquants.com/ecodata-up
To see this html listing, visit noaa-iea.github.io/ecodata-up.
These web pages (*.html) are typically rendered from Rmarkdown (*.Rmd):
{% for file in site.static_files %} {% if file.extname == '.html' %}
- [{{ file.basename }}]({{ site.baseurl }}{{ file.path }}) {% endif %} {% endfor %}
See files on admin@rstudio.iea-demo.us:
~/shiny-logs
~/github/iea-uploader/www/figures/{email}/{dataset}/*
- {dataset}_load_Rlog.txt
- {dataset}_plot.R
- {dataset}_plot_Rlog.txt
- {dataset}_plot.png
From admin@rstudio.iea-demo.us in Terminal:
# git clone
cd /share/github
git clone https://github.com/bbest/ecodata.git
git clone https://github.com/marinebon/iea-uploader.git
# turn off git tracking of chmod
cd /share/github/ecodata; git config core.fileMode false
cd /share/github/iea-uploader; git config core.fileMode false
# chmod so shiny app can edit
cd /share/github; sudo chmod -R 777 ecodata
cd /share/github/iea-uploader; sudo chmod -R 777 data; sudo chmod -R 777 www
# revert git changes
cd /share/github/ecodata; git reset; git checkout .Setup default permissions to work for both shiny and admin users.
Set so group is writable for each user in Terminal manually:
- admin
- shiny
user=admin
user=shiny
sudo su - $user
printf "\numask 0002\n" >> .profileAdd shiny to staff group:
user=shiny
group=staff
sudo usermod -a -G $group $user; groups $userSet default group for following paths:
- /share/github/ecodata_uploader
- /share/github/iea-uploader
group=staff
dir=/share/github/ecodata_uploader
dir=/share/github/iea-uploader/www/figures
sudo chgrp -R $group $dir
sudo chmod g+s $dir
sudo chmod -R 775 $dir
# test
tst=/share/github/ecodata_uploader/umask_test.txt
touch $tst; ls -l $tst; rm $tstInitially, using:
-
app code:
-
dataset:
- Chose first single dataset with
fs::path_ext(`File Name`) == "csv"&`New to this SOE?` == "No"`from SOE 2020 Contributors - Google Sheets:slopewater_proportions.csv
- Chose first single dataset with
-
"slopewater" mentions in
ecodata:- data-raw/get_slopewater.R: create dataset
- R/slopewater.R: document dataset
- other/Rmd/process_env.Rmd: table, plot
- other/Rmd/process_raw.Rmd: table, contributor
- docs/LTL.Rmd: table, plot