当前位置:网站首页>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边栏推荐
- The book "new programmer 002" is officially on the market! From "new database era" to "software defined car"
- 附加:【登录信息存储】与【登录状态校验】;(包括:总结了到目前为止,有关【登录信息存储】与【登录状态校验】的所有内容;)
- Unity3d learning notes 4 - create mesh advanced interface
- Market Research - current market situation and future development trend of third-party data platform
- What is it that makes you tremble? Those without fans can learn
- Task and privilege level protection
- Pointer - function pointer
- Market Research - current situation and future development trend of anterior cruciate ligament (ACL) reconstruction Market
- Phpcms realizes the direct Alipay payment function of orders
- UE4 UI自适应屏幕
猜你喜欢
![[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)

基于ASP.net的手机销售管理系统(二手手机销售管理系统)+ASP.NET+C#语言+VS2010+数据库可以用于课设、毕设学习
![[shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)](/img/07/6f2dfb543cb0ab4f27169da7e6ad07.jpg)
[shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)

#include errors detected. Please update your includePath.

Socket套接字C/S端流程

NC50965 Largest Rectangle in a Histogram

Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts

【ODX Studio编辑PDX】-0.1-如何快速查看各Variant变体间的支持的诊断信息差异(服务,Sub-Function...)

LightGBM原理及天文数据中的应用

Ransack combined condition search implementation
随机推荐
U++ 原始内存 学习笔记
UE4 game architecture learning notes
使用 EMQX Cloud 实现物联网设备一机一密验证
[leetcode] sword finger offer 11 Rotate the minimum number of the array
"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!
scrcpy这款软件解决了和同事分享手机屏幕的问题| 社区征文
#include errors detected. Please update your includePath.
数据库系统概论第一章简答题-期末考得怎么样?
Notes on key vocabulary of the original English book biography of jobs (IX) [chapter seven]
Learn computer knowledge from scratch
APP页面分享口令Rails实现
Task and privilege level protection
Market Research - current market situation and future development trend of handheld wound imaging equipment
php实现根据输入的年龄查询出生日期符合的数据
Technological Entrepreneurship: failure is not success, but reflection is
[shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)
Unity3d learning notes 4 - create mesh advanced interface
Methods of adding styles to native JS
Basic concepts of image and deep understanding of yuv/rgb
SimpleITK使用——3. 常见操作