@ -129,8 +129,9 @@ if [ $# -eq 1 ]; then
# Old attempts, never worked
# Old attempts, never worked
#PORT=$(</home/taha/chepec/chetex/sample-matrix/shinyapp/shiny.port)
#PORT=$(</home/taha/chepec/chetex/sample-matrix/shinyapp/shiny.port)
#bash -c "R -e 'shiny::runApp(\"/home/taha/chepec/chetex/sample-matrix/shinyapp\", port = $PORT)'"
#bash -c "R -e 'shiny::runApp(\"/home/taha/chepec/chetex/sample-matrix/shinyapp\", port = $PORT)'"
# Before starting new shiny process, kill any previous instances
bash -c "shiny-matrix.sh" &
pkill -f "shiny::runApp"
bash -c "/home/taha/chepec/chetex/common/bash/shiny-matrix.sh" &
Rscript -e " library(knitr); knit(input=' $jobname .Rmd', output=' $jobname .md') "
Rscript -e " library(knitr); knit(input=' $jobname .Rmd', output=' $jobname .md') "
Rscript -e " library(markdown); markdownToHTML(' $jobname .md', ' $jobname .html', stylesheet = 'custom.css') "
Rscript -e " library(markdown); markdownToHTML(' $jobname .md', ' $jobname .html', stylesheet = 'custom.css') "
fi
fi