R shiny:renderDataTable对我不起作用(无法读取null的属性'bFilter')

时间:2022-10-11 14:27:07

If I run the basic example provided in the tutorial, I obtain a blank page. Then if I right-click on the page, and use Inspect Element, I can see the following error:

如果我运行教程中提供的基本示例,我将获得一个空白页面。然后,如果我右键单击页面,并使用Inspect Element,我可以看到以下错误:

Uncaught TypeError: Cannot read property 'bFilter' of null

未捕获的TypeError:无法读取null的属性'bFilter'

Is there anything I should fix on my side, or is this a bug ? I can't use dataTables in any of my applications due to this...

我有什么需要解决的,或者这是一个错误?由于这个原因,我不能在我的任何应用程序中使用dataTables ...

Thanks in advance for any suggestion/advice, this would be very much appreciated.

在此先感谢任何建议/意见,我们非常感谢。

Cheers

干杯

ps1: the code I use is

ps1:我使用的代码是

runApp(list(
ui = basicPage(
h2('The mtcars data'),
dataTableOutput('mytable')
),
server = function(input, output) {
output$mytable = renderDataTable({
mtcars
})
}
))

ps2 : I have attached a print screen R shiny:renderDataTable对我不起作用(无法读取null的属性'bFilter')

ps2:我已经附上了一个打印屏幕

1 个解决方案

#1


1  

You happen to be using a development version that is more than 2 weeks old. Please install the current development version on Github. This issue has been fixed there.

您碰巧使用的是超过2周的开发版本。请在Github上安装当前的开发版本。这个问题已经解决了。

#1


1  

You happen to be using a development version that is more than 2 weeks old. Please install the current development version on Github. This issue has been fixed there.

您碰巧使用的是超过2周的开发版本。请在Github上安装当前的开发版本。这个问题已经解决了。