-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36b0518
commit 9e2e821
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env Rscript | ||
# Copyright (C) 2021-2024 Xena Shiny Team | ||
|
||
# The cache directory and port all should be consistent with | ||
# configs in Dockerfile. | ||
|
||
# Check system info | ||
print(Sys.info()) | ||
|
||
# Set options and run app | ||
|
||
if(dir.exists("/xena")){ | ||
# hiplot | ||
#xena.cacheDir = "/xena" | ||
#xena.zenodoDir = "/xena/datasets" | ||
} else { | ||
# zhoulab | ||
xena.cacheDir = "/home/shiny/apps/xena/cache" | ||
xena.zenodoDir = "/home/shiny/apps/xena/datasets/" | ||
} | ||
options(xena.cacheDir = xena.cacheDir, xena.zenodoDir = xena.zenodoDir) | ||
options(xena.runMode = "server") | ||
|
||
library(UCSCXenaShiny) | ||
app_run2("server", content = "sq") | ||
|