当前位置:网站首页>Using rendertext() to output multiple lines of text with rendertext() in R shiny
Using rendertext() to output multiple lines of text with rendertext() in R shiny
2022-07-02 22:44:00 【Bustling city 】
problem :
I want to output multiple lines of text using one renderText()
command. I want to use a renderText()
Command outputs multiline text .However, this does not seem possible. however , It seems impossible .For example, from the shiny tutorial we have truncated code in server.R
: for example , from Shining tutorial We are server.R
Truncated code :
shinyServer( function(input, output) { output$text1 <- renderText({paste("You have selected", input$var) output$text2 <- renderText({paste("You have chosen a range that goes from", input$range[1], "to", input$range[2])}) })
and code in ui.R
: and ui.R
Code :
shinyUI(pageWithSidebar( mainPanel(textOutput("text1"), textOutput("text2"))))
which essentially prints two lines: Basically print two lines :
You have selected exampleYou have chosen a range that goes from example range.
Is it possible to combine the two lines output$text1
and output$text2
into one block of code? Whether two lines can be output$text1
and output$text2
Into a code block ?My efforts so far have failed, eg up to now , My efforts have failed , for example
output$text = renderText({paste("You have selected ", input$var, "\n", "You have chosen a range that goes from", input$range[1], "to", input$range[2])})
Anyone have any ideas? Does anyone have an idea ?
Solution :
Reference resources : https://stackoom.com/en/question/1ZU5p边栏推荐
- ArrayList analysis 2: pits in ITR, listiterator, and sublist
- U++ 原始内存 学习笔记
- Oracle PL / SQL programming
- 20220702 how do programmers build knowledge systems?
- What is it that makes you tremble? Those without fans can learn
- UE4 game architecture learning notes
- Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
- Necessary browser plug-ins for network security engineers
- Sql service intercepts string
- C语言,实现三子棋小游戏
猜你喜欢
Oracle cursor
The book "new programmer 002" is officially on the market! From "new database era" to "software defined car"
开发者分享 | HLS, 巧用AXI_master总线接口指令的定制并提升数据带宽-面积换速度...
UE4 游戏架构 学习笔记
[shutter] shutter opens a third-party application (url|launcher plug-in search and installation | url| launcher plug-in official example | open browser | open a third-party application)
[staff] Sibelius 7.5.1 score software installation (software download | software installation)
C语言,实现三子棋小游戏
[shutter] shutter resource file use (import resource pictures | use image resources)
任务和特权级保护
Share how to make professional hand drawn electronic maps
随机推荐
U++ 原始内存 学习笔记
Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts
I admire that someone explained such an obscure subject as advanced mathematics so easily
Mathematical modeling -- graph and network models and methods (I)
Leetcode theme [array] -169- most elements
NC50965 Largest Rectangle in a Histogram
U++ 学习笔记 ----松弛
Kubernetes resource object introduction and common commands (4)
Notes on key vocabulary of the original English book biography of jobs (IX) [chapter seven]
Service visibility and observability
服务可见可观测性
Market Research - current situation and future development trend of anti-counterfeiting label market
牛客网:龙与地下城游戏
LxC terminal login method
《乔布斯传》英文原著重点词汇笔记(十)【 chapter eight】
The book "new programmer 002" is officially on the market! From "new database era" to "software defined car"
Phpcms realizes the direct Alipay payment function of orders
Technological Entrepreneurship: failure is not success, but reflection is
New feature of go1.18: introduce new netip Network Library
大话云原生之负载均衡篇-小饭馆客流量变大了