Shiny output not enclosed in tags - is it possible?

I want to output a string not enclosed in tags using shiny, e.g. create <title> content. Example:



server.R



library(shiny)

shinyServer(function(input, output) {
output$mytitle <- renderText("Hello World")
})


ui.R



library(shiny)

shinyUI(fluidPage(
#tags$title(textOutput("mytitle"))
#tags$title(uiOutput("mytitle"))
tags$head(htmlOutput("mytitle", container = tags$title))
))


In every case shiny outputs things enclosed in some tags (generally <div> or <span>). Is it possible to output untagged string (text directly in <body>)? Is it possible to set <title> using shiny?



I understand that it uses jQuery to dynamically input content into HTML tags, however this behaviour possible to obtain in jQuery, so I am interested if it is so in shiny?