Guess that would be easier if you work with shiny and shinydashboard.
Here's a full example.
First you need to prepare a new shiny web app. From RStudio > File > New File > Shiny Web App (1 below) and then select single file app (2 below).
Finally copy/paste the following code.
## app.R ##
library(shiny)
library(shinydashboard)
author <- "John Doe"
ui <- dashboardPage(
dashboardHeader(title = "TestApp"),
dashboardSidebar(HTML(paste0(
"<div style='position: absolute; bottom: 5px;'>",
author,"<br>",Sys.Date(),
"</div>"
))
),
dashboardBody("Hello")
)
server <- function(input, output) { }
shinyApp(ui, server)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…