代码之家  ›  专栏  ›  技术社区  ›  firmo23

更改flexDashboard中使用的shiny::renderText()中的行

  •  1
  • firmo23  · 技术社区  · 6 年前

    下面是基本的FlexDashboard。我想要的是改变“hello”后面的行,以便将“world”放在它下面,在 renderText() 是的。我发现我可以用 htmlOutput() verbatimTextOutput() 但这些不是用在 flexdashboard 是的。

    ---
    title: "[School Name] Enrollment Projections for Fall 2019"
    output: 
      flexdashboard::flex_dashboard:
        orientation: rows
        runtime: shiny
    ---
    ```{r setup, include = FALSE}
    library(flexdashboard)
    library(shiny)
    
    ```
    Column {.sidebar }
    -------------------------------------
    ### Menu
    ```{r}
    renderText({
          paste("hello", "world", sep="\n")
        })
    ```
    
    Row {data-height=400}
    -------------------------------------
    ### Enrollments
    ```{r}
    ```
    
    0 回复  |  直到 6 年前