Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有一种方法可以将超链接放置在带有闪亮R的textInput中_R_Url_Shiny_Textinput - Fatal编程技术网

有没有一种方法可以将超链接放置在带有闪亮R的textInput中

有没有一种方法可以将超链接放置在带有闪亮R的textInput中,r,url,shiny,textinput,R,Url,Shiny,Textinput,对于我目前正在进行的一个项目,我想在文本输入框中使用闪亮的R放置一个超链接。在R中使用以下脚本时,我的html代码将显示在文本输入框中,而不是显示“Google主页”作为可单击的链接 test <- a("Google Homepage", href="https://www.google.com/") runApp( list(ui = fluidPage( textInput("test", "test", test) ), server

对于我目前正在进行的一个项目,我想在文本输入框中使用闪亮的R放置一个超链接。在R中使用以下脚本时,我的html代码将显示在文本输入框中,而不是显示“Google主页”作为可单击的链接


test <- a("Google Homepage", href="https://www.google.com/")

runApp(
    list(ui = fluidPage(
         textInput("test", "test", test)
    ),
    server = function(input, output, session){
    })
)



测试正如@Stéphanie提到的,这是不可能的。 因为您将标记包含为输入元素的值。如果查看HTML,您将看到:

<input id="test" type="text" class="form-control shiny-bound-input" value="<a href=&quot;https://www.google.com/&quot;>Google Homepage</a>">

正如@Stéphanie提到的,这是不可能的。 因为您将标记包含为输入元素的值。如果查看HTML,您将看到:

<input id="test" type="text" class="form-control shiny-bound-input" value="<a href=&quot;https://www.google.com/&quot;>Google Homepage</a>">
不可能:不可能: