0
Ich möchte in der Lage sein, eine Tabelle als Bild (PNG oder JPEG) herunterzuladen. Nehmen wir an, dass meine Datenrahmen ist dfDownload Tabelle als Bild r
output$statsTable <- renderTable({
#Printing the table
df
})
output$downloadStatsTable <- downloadHunter(
filename = function() {
paste(getwd(), '/test.png', sep = '')
},
content = function(con) {
p <- grid.table(df)
device <- function(..., width, height) grDevices::png(..., width = 12, height = 9, res = 300, units = "in")
ggsave(file, plot = p, device = device)
}
)
Was ist Ihr Problem? Funktioniert dein Code nicht? Welche Fehler haben Sie? –
Das Problem ist, ich habe eine Schaltfläche, die beim Klicken ein Bild der Tabelle herunterladen und ich weiß nicht, wie es geht. Der obige Code funktioniert nicht, da es keine zu downloadende Handlung gibt. – wittywillis