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
CSIRO-INRA
landsepi
Commits
37916603
Commit
37916603
authored
Jun 17, 2021
by
Jean-Francois Rey
☕
Browse files
add package dependencies shiny app
parent
9da7d2c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/runShiny.R
View file @
37916603
...
...
@@ -12,7 +12,7 @@ runShinyApp <- function() {
needed_packages
<-
c
(
"shiny"
,
"shinyBS"
,
"DT"
,
"shinyjs"
,
"gridExtra"
,
"png"
,
"grid"
,
"future"
,
"promises"
,
"tools"
)
if
(
sum
(
needed_packages
%in%
utils
::
installed.packages
()[,
1
]
==
FALSE
)
!=
0
)
{
stop
(
'Install packages : install.packages(c("shiny","DT", "shinyjs", "gridExtra", "png", "grid", "future", "promises", "tools"))'
)
stop
(
'Install packages : install.packages(c("shiny",
"shinyBS",
"DT", "shinyjs", "gridExtra", "png", "grid", "future", "promises", "tools"))'
)
}
shiny
::
runApp
(
appDir
,
launch.browser
=
TRUE
,
display.mode
=
"normal"
)
...
...
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