Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
sagJL
Commits
3fa2cb59
Commit
3fa2cb59
authored
Jun 29, 2020
by
mmassaviol
Browse files
Debug error with updateTextInput & parseFilePaths
(error with new shiny versions)
parent
d6c6869c
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.R
View file @
3fa2cb59
...
...
@@ -713,7 +713,9 @@ generate_pages_server <- function() {
if
(
cnt
$
type
==
"input_file"
){
res
<-
res
+
'\t\tshinyFileChoose(input, "shinyfiles_'
+
cnt
$
name
+
'", root='
+
volumes
+
',session = session)\n'
res
<-
res
+
'\t\tobserveEvent({parseFilePaths('
+
volumes
+
',input$shinyfiles_'
+
cnt
$
name
+
')$datapath[1]},{\n'
res
<-
res
+
'\t\t\tupdateTextInput(session,"'
+
cnt
$
name
+
'_server",value = parseFilePaths('
+
volumes
+
',input$shinyfiles_'
+
cnt
$
name
+
')$datapath[1])\n'
res
<-
res
+
'\t\t\tif(length(parseFilePaths('
+
volumes
+
',input$shinyfiles_'
+
cnt
$
name
+
')$datapath)==1){\n'
res
<-
res
+
'\t\t\t\tupdateTextInput(session,"'
+
cnt
$
name
+
'_server",value = parseFilePaths('
+
volumes
+
',input$shinyfiles_'
+
cnt
$
name
+
')$datapath[[1]])\n'
res
<-
res
+
'\t\t\t}\n'
res
<-
res
+
'\t\t})\n\n'
}
if
(
cnt
$
type
==
"input_dir"
||
cnt
$
type
==
"output_dir"
){
...
...
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