当前位置:网站首页>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边栏推荐
- 建立自己的网站(22)
- Official announcement! The golden decade of new programmers and developers was officially released
- "New programmer 003" was officially launched, and the cloud native and digital practical experience of 30+ companies such as Huawei and Alibaba
- Socket套接字C/S端流程
- The book "new programmer 002" is officially on the market! From "new database era" to "software defined car"
- [leetcode] sword finger offer 04 Search in two-dimensional array
- 关于PHP-数据库的 数据读取,Trying to get property 'num_rows' of non-object?
- Market Research - current market situation and future development trend of genome editing mutation detection kit
- Pointer - function pointer
- Oracle-游标
猜你喜欢

UE4 游戏架构 学习笔记

An overview of the development of affective computing and understanding research

It's not easy to say I love you | use the minimum web API to upload files (swagger support) # yyds dry inventory #

scrcpy这款软件解决了和同事分享手机屏幕的问题| 社区征文

Hanoi Tower problem

Reading experience of just because

Dynamic memory allocation (malloc calloc realloc free)

Oracle cursor

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

Ransack combined condition search implementation
随机推荐
Micro service gateway selection, please accept my knees!
Source code analysis - lightweight asynchronous crawler framework Ruia
Notes on key vocabulary in the English original of the biography of jobs (11) [chapter nine]
Oracle-PL/SQL编程
Market Research - current market situation and future development trend of total nutrition products
Sql service intercepts string
NC24325 [USACO 2012 Mar S]Flowerpot
New feature of go1.18: trylock, which has been tossed n times
存储单位换算
[foreign journal] sleep and weight loss
Market Research - current situation and future development trend of sickle cell therapy Market
Commodity information management system (C language document version)
540. Single element in ordered array
Unity3d learning notes 4 - create mesh advanced interface
[shutter] shutter application theme (themedata | dynamic modification theme)
Ransack combined condition search implementation
Basic concepts of image and deep understanding of yuv/rgb
Utilisation de simpletk - 4. Question étrange
Service visibility and observability
Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts