Hello R people! Please I am trying to add buttons like 'pdf','csv' to my data table. I believe I have written the code well, but I keep getting the following error message each time I run the app:
Listening on http://127.0.0.1:5903
Warning: Error in FUN: The extension Button does not exist
Stack trace (innermost first):
86: FUN
85: lapply
84: unlist
83: datatable
82: widgetFunc
81: func
80: origRenderFunc
79: renderFunc
78: origRenderFunc
77: output$Tab
1: runApp
Is there some thing I am missing? Here is the server code I have written:
output$Tab<-renderDataTable(
data.frame(
"People"=people,
"Industries"=industries,
"Schools"=schools,
"Hospitals"=hospitals),
extensions='Button',options=list(dom='Bfrtip',buttons=list(
'copy','pdf','csv','excel','print'
))
I have also tried the datatable() function in place of the renderDatatable() code, but my app will not load when I try to run it, and I get the following error message:
Listening on http://127.0.0.1:5903
Warning: Error in FUN: The extension Button does not exist
Stack trace (innermost first):
47: FUN
46: lapply
45: unlist
44: datatable
43: server [C:\Users\Idiaye\Documents\Plots/app.R#178]
1: runApp
Error in FUN(X[[i]], ...) : The extension Button does not exist
Please, I will really appreciate your help, I beg!