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
jlopez
RPACIB
Commits
b6a5614d
Commit
b6a5614d
authored
Apr 24, 2018
by
jlopez
Browse files
Change to modifiable textarea
parent
d6417e90
Changes
2
Hide whitespace changes
Inline
Side-by-side
pages/pages_def_home.R
View file @
b6a5614d
...
...
@@ -65,7 +65,7 @@ tabHome = fluidPage(align="left",
solidHeader
=
TRUE
,
status
=
"primary"
,
style
=
'height:1000px; overflow-y: scroll'
,
verbatimTextOut
put
(
"previewContainer"
)
textAreaIn
put
(
"previewContainer"
,
label
=
""
,
height
=
"1000px"
)
)
)
...
...
server/opt_home.R
View file @
b6a5614d
...
...
@@ -451,20 +451,36 @@ createContentFile <- function() {
return
(
result
)
}
createContainerPackage
<-
eventReactive
(
input
$
createContainer
,
{
result
<-
createContentFile
(
)
observeEvent
(
input
$
createContainer
,
{
print
(
"preview"
)
show
(
"downloadContainerFile"
)
HTML
(
result
)
result
<-
createContentFile
()
updateTextAreaInput
(
session
,
"previewContainer"
,
label
=
""
,
value
=
result
)
})
#createContainerPackage <- eventReactive(input$createContainer, {
#result <- createContentFile()
#show("downloadContainerFile")
output
$
previewContainer
<-
renderText
({
createContainerPackage
()
})
#HTML(result)
#})
#output$previewContainer <- renderText({
# createContainerPackage()
#})
output
$
downloadContainerFile
<-
downloadHandler
(
filename
=
function
()
{
...
...
@@ -476,7 +492,7 @@ output$downloadContainerFile <- downloadHandler(
}
},
content
=
function
(
file
)
{
result
<-
createContentFile
()
result
<-
input
$
previewContainer
write
(
result
,
file
=
file
)
}
)
...
...
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