Flexdashboard를 Shiny state 북마크와 결합하려고합니다. (워드 프로세서에서 예) 단독으로 사용하면 반짝 응용 프로그램은 잘 작동하지만 flexdasboard에 넣어 경우, URL이 업데이트되지 않습니다 :Flexdashboard가 Shiny URL 상태에서 작동하지 않습니다.
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
```
Column {data-width=650}
-----------------------------------------------------------------------
### Chart A
```{r}
shinyApp(
ui=function(req) {
fluidPage(
textInput("txt", "Text"),
checkboxInput("chk", "Checkbox")
)
},
server=function(input, output, session) {
observe({
# Trigger this observer every time an input changes
reactiveValuesToList(input)
session$doBookmark()
})
onBookmarked(function(url) {
updateQueryString(url)
})
},
enableBookmarking = "url"
)
```
이도 가능합니까? 독립 실행 비교 : 그것은 onBookmarked
(그리고 onBookmark
, onRestore
및 onRestored
같은 유사한 사건)과 같은
shinyApp(
ui=function(req) {
fluidPage(
textInput("txt", "Text"),
checkboxInput("chk", "Checkbox")
)
},
server=function(input, output, session) {
observe({
# Trigger this observer every time an input changes
reactiveValuesToList(input)
session$doBookmark()
})
onBookmarked(function(url) {
updateQueryString(url)
})
},
enableBookmarking = "url"
)
트리거되지 않습니다.