Q:

How to get textOutput working when using Slidy with Shiny runtime

The following code has satisfying results locally But when uploaded on shinyapps.io does not work. 
---
title: "shiny slidy app"
author: "IMI"
date: "11/29/2018"
output:
  slidy_presentation:
    self_contained: yes
runtime: shiny
---

```{r data, echo=FALSE, message=FALSE, warning=FALSE, paged.print=FALSE}
library(shiny)
data<- data.frame(Year= 1990:1999)
```

## First

```{r slideselect, echo=T, message=FALSE, warning=FALSE, paged.print=FALSE}
sliderInput("year", "Year",
    min = min(data$Year), max = max(data$Year),
    value = c(min(data$Year),max(data$Year)))       

```

```{r print, echo=T}
year<-reactive(input$year)
output$rendtext<-renderText( year()[1]:year()[2])
textOutput("rendtext")
```   

shinyapps.io:

local:

Any suggestion?

A:

I just tried your code and it worked well:

I made the following steps in Rstudio:
1) Create a new Rmd file
---
title: "shiny slidy app"
author: "IMI"
date: "11/29/2018"
output:
  html_document:
    df_print: paged
  slidy_presentation:
    self_contained: yes
runtime: shiny
---

```{r data, echo=FALSE, message=FALSE, warning=FALSE, paged.print=FALSE}
library(shiny)
data<- data.frame(Year= 1990:1999)
```

## First

```{r slideselect, echo=T, message=FALSE, warning=FALSE, paged.print=FALSE}
sliderInput("year", "Year",
    min = min(data$Year), max = max(data$Year),
    value = c(min(data$Year),max(data$Year)))       

```

```{r print, echo=T}
year<-reactive(input$year)
output$rendtext<-renderText( year()[1]:year()[2])
textOutput("rendtext")
```   

2) Publish it on shinyapp.io via the dedicated button

Also I tried with a basic shiny deployment (looked at the shiny guidelines) and with this it's ok as well: it runs both local and on shinyapp.io.
# Global variables can go here
library(shiny)
data <- data.frame(Year= 1990:1999)

# Define the UI
ui <- bootstrapPage(

  # Input: Simple integer interval ----
  sliderInput("year", "Year", min = min(data$Year), max = max(data$Year), value = c(min(data$Year),max(data$Year))),

  # Output: Text output summarizing the values ----
  textOutput("rendtext")

)

# Define the server code
server <- function(input, output) {

  # Reactive expression for the input values ---
  year <- reactive(input$year)  

  # Show the values ----
  output$rendtext<-renderText( year()[1]:year()[2])

}

# Return a Shiny app object
shinyApp(ui = ui, server = server)

