data.frame in reactive , and after formattable : getting error : object of type 'closure' is not subsettable

Please read the below article for debugging tips. If you are unable to solve for yourself and would like forum support, consider following the guide to making a shiny reprex (in the article also)

(Shiny debugging and reprex guide)