shaman_conda.R 693 Bytes
Newer Older
1
#!/usr/bin/env Rscript --vanilla
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
2
prefix=Sys.getenv(x = "CONDA_PREFIX")
Amine  GHOZLANE's avatar
Amine GHOZLANE committed
3
prefix=paste(prefix, "bin", sep=.Platform$file.sep)
4
system(paste("python ", prefix, "shaman_bioblend/shaman_bioblend.py -w ", prefix,"shamanapp/www/masque/ -s -d", sep=.Platform$file.sep))
5
6
7
8
9
10
kronarshy=paste(tempfile(),".R",sep="")
write(paste("library(\"shiny\");runApp(appDir=\"", prefix,"KronaRShy\", port=5438)", sep=.Platform$file.sep),kronarshy)
system(paste("Rscript", kronarshy), wait=FALSE)
shamanapp=paste(tempfile(),".R",sep="")
write(paste("library(\"shiny\");runApp(appDir=\"", prefix,"shamanapp\", port=80, host=\"0.0.0.0\")", sep=.Platform$file.sep), shamanapp)
system(paste("Rscript", shamanapp), wait=FALSE)