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
migale
affiliationExplorer
Commits
11daf951
Commit
11daf951
authored
Nov 30, 2020
by
mahendra-mariadassou
Browse files
Add max_size argument to dynamically change maximum size of valid files
parent
2b5819bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
11daf951
...
...
@@ -41,4 +41,4 @@ Remotes:
biocViews:
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.
0
RoxygenNote: 7.1.
1
R/app_server.R
View file @
11daf951
...
...
@@ -5,6 +5,10 @@
#' @importFrom shinyjs hide show
#' @importFrom dplyr distinct
app_server
<-
function
(
input
,
output
,
session
)
{
## Change maximum upload size
max_size
<-
golem
::
get_golem_options
(
"max_size"
)
if
(
!
is.null
(
max_size
))
options
(
shiny.maxRequestSize
=
max_size
)
# Load package data in the session (for testing purpose)
# data("physeq", package = "affiliationExplorer")
# data("affi", package = "affiliationExplorer")
...
...
dev/run_dev.R
View file @
11daf951
# Set options here
options
(
golem.app.prod
=
FALSE
)
# TRUE = production mode, FALSE = development mode
options
(
shiny.maxRequestSize
=
100
*
1024
^
2
)
#
options(shiny.maxRequestSize = 100 * 1024^2)
options
(
spinner.color
=
"#0275D8"
,
spinner.color.background
=
"#ffffff"
,
spinner.size
=
2
)
# Detach all loaded packages and clean your environment
...
...
Write
Preview
Markdown
is supported
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