当前位置:网站首页>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边栏推荐
- SimpleITK使用——4. 奇怪的問題
- [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)
- Lightgbm principle and its application in astronomical data
- SimpleITK使用——3. 常见操作
- LxC terminal login method
- Web side defense Guide
- 影视随摘
- Service visibility and observability
- 腾讯三面:进程写文件过程中,进程崩溃了,文件数据会丢吗?
- Market Research - current situation and future development trend of sickle cell therapy Market
猜你喜欢

Task and privilege level protection

Hanoi Tower problem
![[shutter] shutter resource file use (import resource pictures | use image resources)](/img/e9/94ae2e3ee315f490eb3cf14bcf2e49.jpg)
[shutter] shutter resource file use (import resource pictures | use image resources)

Mathematical modeling -- graph and network models and methods (I)

Simpleitk use - 4 Strange question

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

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

Objects and object variables

kubernetes资源对象介绍及常用命令(四)

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
随机推荐
Web side defense Guide
百度智能云-创建人脸识别应用
[QT] QT multithreading development - four methods to realize multithreading design
SimpleITK使用——3. 常见操作
[leetcode] sword finger offer 04 Search in two-dimensional array
Simpleitk use - 4 Strange question
牛客网:龙与地下城游戏
UE4 game architecture learning notes
原生js添加样式的方法
Unity publishes a method of webgl playing sound
Attack and defense world PWN question: Echo
Bridge emqx cloud data to AWS IOT through the public network
U++ 学习笔记 堆
存储单位换算
[shutter] shutter application theme (themedata | dynamic modification theme)
php优化foreach中的sql查询
Oracle cursor
Unity3d learning notes 4 - create mesh advanced interface
20220702 how do programmers build knowledge systems?
[QT] Q multithreaded development - Analysis of multithreaded application examples (Mandelbrot)