小编Aan*_*nna的帖子

Shiny R renderText粘贴新行和粗体

我有以下内容:

output$count <- renderText({
#some input

    paste("Your length is:" , input$length , "Your weight is:" , weight , 
"Your age is:", age) 
Run Code Online (Sandbox Code Playgroud)

我想要三个句子,通常我会使用sep ="\n",但这不起作用.如何使用\n或任何其他方法在粘贴中获取新行?编辑:我也想以粗体显示答案,这可能吗?

r shiny

8
推荐指数
1
解决办法
8170
查看次数

标签 统计

r ×1

shiny ×1