在闪亮的仪表板中插入图像:闪亮的flex仪表板失败

时间:2016-11-28 11:50:21

标签: r markdown r-markdown shinydashboard flexdashboard

我在降价时在flex仪表板模板中运行闪亮。 我想在标签中插入图片,但它总是显示我

Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="figure-html/unnamed-chunk-8-1.mb.png": The system cannot find the path specified

仪表板输出显示任何内容。以前有人遇到过这个问题吗?

如果只是想插入图像而没有其他编码图形等,那么它可以工作

  ---
 title: "Untitled"
 output: 
  flexdashboard::flex_dashboard:
  orientation: columns
  vertical_layout: fill
   runtime: shiny
  ---

   ```{r setup, include=FALSE}
   library(flexdashboard)
   library(shiny)
   ```

   Column {data-width=350}
   -----------------------------------------------------------------------
   ![alt](/Users/abc/Desktop/cluster.png)

如果为其他图表添加其他代码,例如,仪表板不显示任何内容。但是如果删除插入图像部分,则仪表板是完美的

     Column {data-width=500}
    -----------------------------------------------------------------------


    ### Data     
    ```{r}

    DT::datatable(table_fm, options = list(pageLength = 10))

    ```

    Column {data-width=350}
   -----------------------------------------------------------------------
   ![alt](/Users/abc/Desktop/cluster.png)

0 个答案:

没有答案
相关问题