RShiny download data frame as html instead of csv

Did you add print head and monitor that in your console ? You haven't shared the console output for me to make an opinion on.

Another way to approach this is for you to make a reprex.

please have a look at this guide, to see how to create one: