当前位置:网站首页>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边栏推荐
- UE4 UI自适应屏幕
- ServiceMesh主要解决的三大痛點
- An overview of the development of affective computing and understanding research
- SimpleITK使用——3. 常见操作
- "Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks!
- Market Research - current situation and future development trend of preclinical medical device testing service market
- Market Research - current situation and future development trend of marine clutch Market
- [QT] QT multithreading development - reentrancy and thread safety
- Market Research - current market situation and future development trend of aircraft audio control panel system
- Promise optimized callback hell
猜你喜欢

Oracle-PL/SQL编程

"New programmer 003" was officially launched, and the cloud native and digital practical experience of 30+ companies such as Huawei and Alibaba

C language, to achieve three chess games

sql service 截取字符串
![[ODX studio edit PDX] -0.1- how to quickly view the differences in supported diagnostic information between variant variants (service, sub function...)](/img/2b/f31b81cedf37ca187bcaa20dfe0b83.png)
[ODX studio edit PDX] -0.1- how to quickly view the differences in supported diagnostic information between variant variants (service, sub function...)

开发者分享 | HLS, 巧用AXI_master总线接口指令的定制并提升数据带宽-面积换速度...

wait解决僵尸进程

What is it that makes you tremble? Those without fans can learn

百度智能云-创建人脸识别应用

New feature of go1.18: introduce new netip Network Library
随机推荐
ServiceMesh主要解决的三大痛點
NC50965 Largest Rectangle in a Histogram
I admire that someone explained such an obscure subject as advanced mathematics so easily
NC24325 [USACO 2012 Mar S]Flowerpot
【微服务|Sentinel】重写sentinel的接口BlockExceptionHandler
JS获取display为none的隐藏元素的宽度和高度的解决方案
Notes on key vocabulary in the English original of the biography of jobs (10) [chapter eight]
PHP implements querying the data matching the date of birth according to the entered age
What is it that makes you tremble? Those without fans can learn
图形视图框架
牛客网:龙与地下城游戏
UE4 游戏架构 学习笔记
ArrayList analysis 2: pits in ITR, listiterator, and sublist
App page sharing password rails implementation
Learn computer knowledge from scratch
C语言,实现三子棋小游戏
Unity3d learning notes 4 - create mesh advanced interface
Attack and defense world PWN question: Echo
Reading experience of just because
wait解决僵尸进程