Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amine GHOZLANE
shaman
Commits
62bd1b73
Commit
62bd1b73
authored
Feb 25, 2021
by
Amine GHOZLANE
Browse files
Fix shaman on conda
parent
6b7a663f
Pipeline
#48793
passed with stage
in 29 minutes and 29 seconds
Changes
1
Pipelines
4
Show whitespace changes
Inline
Side-by-side
www/shaman_conda.R
View file @
62bd1b73
...
...
@@ -2,9 +2,10 @@
prefix
=
Sys.getenv
(
x
=
"CONDA_PREFIX"
)
prefix
=
paste
(
prefix
,
"bin"
,
sep
=
.Platform
$
file.sep
)
system
(
paste
(
"python "
,
prefix
,
"shaman_bioblend/shaman_bioblend.py -w "
,
prefix
,
"shamanapp/www/masque/ -s -d"
,
sep
=
.Platform
$
file.sep
))
kronarshy
=
paste
(
tempfile
(),
".R"
,
sep
=
""
)
workdir
=
getwd
()
kronarshy
=
tempfile
(
"kronarshy"
,
fileext
=
".R"
,
tmpdir
=
workdir
)
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
=
""
)
shamanapp
=
tempfile
(
"shaman"
,
fileext
=
".R"
,
tmpdir
=
workdir
)
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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment