Corretgir exportar objecte.

This commit is contained in:
Costa
2021-07-14 11:24:17 +02:00
parent b9d77ac3f2
commit d58e3d6e0e
+3 -2
View File
@@ -269,9 +269,10 @@ server <- function(input, output) {
png("plot.png", width = input$width, height=input$height, units = "px", res=720) png("plot.png", width = input$width, height=input$height, units = "px", res=720)
plot(dades$plot) plot(dades$plot)
dev.off() dev.off()
save(dades$plot, list="plot", file="plot.RObject") plot<-dades$plot
save(plot, file="plot.RObject")
zip(file, zip(file,
c("plot.png") c("plot.png", "plot.RObject")
) )
} }
) )