有在製圖人魚序列圖線R.上shinyapps.io託管代碼時在製圖順序圖沒有箭頭
第一隻複製的例子在本地運行,也當我得到這個結果沒有箭頭代碼在這裏:http://rich-iannone.github.io/DiagrammeR/mermaid.html#sequence-diagrams進入RStudio並運行顯示沒有箭頭。請注意鏈接圖中的箭頭。
所以我創建了下面的閃亮表現,並將其推到Shinyapps這裏:https://mattbrigida.shinyapps.io/seq_ex/seq_diag_example.Rmd#2
---
title: "Sequence Diagram Example Presentation"
author: "Matt Brigida"
affiliation:
date: "03/10/2016"
output: ioslides_presentation
runtime: shiny
smaller: true
---
##
```{r, echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
library(shiny)
library(DiagrammeR)
ui = shinyUI(fluidPage(
titlePanel("No Arrows on Shinyapps"),
fluidRow(
column(12, numericInput("test", "Does Nothing", value = 1))
),
fluidRow(
column(12,
DiagrammeROutput('diagram2', width = "100%")
)
)
)
)
server = function(input, output){
output$diagram2 <- renderDiagrammeR({
mermaid("
sequenceDiagram
X->>Y: No Arrows when run locally
Y->>X: No arrows when on Shinyapps
X-->>X: why??
")
})
}
shinyApp(ui = ui, server = server)
```
沒有箭也存在,所以這不能成爲我的本地設置。
這個問題可能涉及:https://github.com/knsv/mermaid/issues/209與建議的解決方案:https://github.com/knsv/mermaid/blob/fcb2af780dac7f42d8e467948f311177b54a62d2/src/diagrams/sequenceDiagram/sequenceRenderer.js#L231-L235
但我不知道如何將這種潛在的修復到我閃亮的應用呈現箭頭?有任何想法嗎?
本地運行:
- 製圖版0.8.2
- [R 3.2.3
- x86_64的GNU/Linux的
- 鉻 49.0.2623.87