当前位置:网站首页>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边栏推荐
- [foreign journal] sleep and weight loss
- [micro service sentinel] rewrite Sentinel's interface blockexceptionhandler
- What is it that makes you tremble? Those without fans can learn
- scrcpy这款软件解决了和同事分享手机屏幕的问题| 社区征文
- Official announcement! The golden decade of new programmers and developers was officially released
- UE4 game architecture learning notes
- It's not easy to say I love you | use the minimum web API to upload files (swagger support) # yyds dry inventory #
- [QT] QT multithreading development - four methods to realize multithreading design
- Market Research - current situation and future development trend of anti-counterfeiting label market
- 图形视图框架
猜你喜欢
An overview of the development of affective computing and understanding research
【外刊】睡眠与减肥
数学建模——图与网络模型及方法(一)
[foreign journal] sleep and weight loss
Oracle PL / SQL programming
Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts
Commodity information management system (C language document version)
#include errors detected. Please update your includePath.
NC24325 [USACO 2012 Mar S]Flowerpot
#include errors detected. Please update your includePath.
随机推荐
PHP optimizes SQL queries in foreach
Additional: [login information storage] and [login status verification]; (including: summarizing all the contents of [login information storage] and [login status verification] so far;)
原生js添加样式的方法
Notes on key vocabulary in the English original of the biography of jobs (10) [chapter eight]
Market Research - current situation and future development trend of preclinical medical device testing service market
Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts
Based on asp Net (used mobile phone sales management system) +asp Net+c # language +vs2010+ database can be used for course design and post design learning
Methods of adding styles to native JS
Market Research - current market situation and future development trend of night vision goggles for pilots
[shutter] shutter custom fonts (download TTF fonts | pubspec.yaml configure font resources | synchronize resources | globally apply fonts | locally apply fonts)
NC50965 Largest Rectangle in a Histogram
php实现根据输入的年龄查询出生日期符合的数据
SimpleITK使用——3. 常见操作
Market Research - current market situation and future development trend of handheld wound imaging equipment
Oracle cursor
Using emqx cloud to realize one machine one secret verification of IOT devices
Radis:Linux上安装Redis(步骤)
"New programmer 003" was officially launched, and the cloud native and digital practical experience of 30+ companies such as Huawei and Alibaba
Commodity information management system (C language document version)
存储单位换算