Skip to content
Snippets Groups Projects
Unverified Commit 4028c9f9 authored by Todor Kondic's avatar Todor Kondic
Browse files

R/api: serve: Fix top-level output directory creation.

parent 13d091ed
No related branches found
No related tags found
No related merge requests found
Package: shinyscreen Package: shinyscreen
Title: Pre-screening of Mass Spectrometry Data Title: Pre-screening of Mass Spectrometry Data
Version: 1.0.8 Version: 1.0.9
Author: Todor Kondić Author: Todor Kondić
Maintainer: Todor Kondić <todor.kondic@uni.lu> Maintainer: Todor Kondić <todor.kondic@uni.lu>
Authors@R: Authors@R:
......
...@@ -787,6 +787,12 @@ app <- function(shiny_args=list(launch.browser=F),render_args=NULL,indir=getwd() ...@@ -787,6 +787,12 @@ app <- function(shiny_args=list(launch.browser=F),render_args=NULL,indir=getwd()
serve <- function(indir,topuserdir,user,host='0.0.0.0',port=7777) { serve <- function(indir,topuserdir,user,host='0.0.0.0',port=7777) {
shiny_args <- c(list(launch.browser=F),list(host=host,port=port)) shiny_args <- c(list(launch.browser=F),list(host=host,port=port))
userdir <- file.path(topuserdir,user) userdir <- file.path(topuserdir,user)
if (!dir.exists(userdir)) {
dir.create(userdir)
message('Created userdir: ',userdir)
} else {
message('Using existing userdir: ', userdir)
}
app(shiny_args=shiny_args,indir=indir,userdir=userdir) app(shiny_args=shiny_args,indir=indir,userdir=userdir)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment