Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Guillaume Perréal
easy16S
Commits
b0877319
Commit
b0877319
authored
Jul 20, 2018
by
Midoux Cedric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
downloadButton
parent
c69c4f29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
server.R
server.R
+28
-0
ui.R
ui.R
+3
-2
No files found.
server.R
View file @
b0877319
...
...
@@ -122,6 +122,34 @@ shinyServer
}
})
data
<-
reactiveValues
()
{
observe
({
if
(
!
is.null
(
data16S
()))
isolate
(
data
<<-
data16S
())
})
}
output
$
downloadData
<-
{
downloadHandler
(
filename
=
function
()
{
paste
(
"Easy16S-data"
,
Sys.Date
(),
"RData"
,
sep
=
"."
)
},
content
=
function
(
file
)
{
save
(
data
,
file
=
file
)
}
)
}
output
$
downloadUI
<-
renderUI
({
validate
(
need
(
data16S
(),
""
))
tags
$
div
(
style
=
"text-align:center"
,
title
=
"Download as RData"
,
downloadButton
(
"downloadData"
,
"Download"
,
style
=
"color: black; background-color: gray90"
)
)
})
output
$
rarefactionMin
<-
renderText
({
validate
(
need
(
input
$
fileBiom
,
""
),
need
(
input
$
dataset
==
"input"
,
""
))
...
...
ui.R
View file @
b0877319
...
...
@@ -67,7 +67,7 @@ shinyUI(dashboardPage(
fileInput
(
"fileTree"
,
label
=
"Phylogenetic tree : "
,
placeholder
=
"data.nwk"
)
)
#
,
),
# tags$div(
# title = "Representative FASTA sequences of OTU",
# fileInput(
...
...
@@ -75,7 +75,8 @@ shinyUI(dashboardPage(
# label = "FASTA sequences : "),
# placeholder = "data.fasta"
# )
# )
# ),
uiOutput
(
"downloadUI"
)
),
dashboardBody
(
tabsetPanel
(
...
...
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