tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

ppt I export graph to gets corrupted #19

Closed hwaterhouse closed 4 years ago

hwaterhouse commented 4 years ago

Hello, I've been using your graph2ppt() function which was working beautifully appending graphs I made to an existing ppt I had. Suddenly I got this error:

graph2ppt(, file="/Users/hwaterhouse/Google Drive (hwaterhouse@ucdavis.edu)/PhD/Modesto/Manuscript 2nd chapter/Figures.pptx", append=TRUE) Error in zip::unzip(zipfile = file, exdir = folder) : zip error: Cannot extract entryppt/media/image14.emffrom archive/Users/hwaterhouse/Google Drive (hwaterhouse@ucdavis.edu)/PhD/Modesto/Manuscript 2nd chapter/Figures.pptx` in filezip.c:305`

It seems to think the ppt is zipped which it isn't... and now when I open my ppt other graphs I had in there from before using this function do not display (just a box with a red x in place of the picture of the graph). Any help would be greatly appreciated.

Thanks, Hannah

tomwenseleers commented 4 years ago

Do you have a full reproducible example that reproduces this error by any chance? Perhaps the problem is linked to you wanted to add graphs to another powerpoint that was not originally made with the export package (which I never tested if that works or not)?

hwaterhouse commented 4 years ago

Hi Tom, I think that was it- I was adding it to a power point that had not been made with the export package. The issue does not arise if you don’t use one that was already made.

Thank you, Hannah

On Oct 9, 2019, at 2:30 AM, Tom Wenseleers notifications@github.com wrote:

Do you have a full reproducible example that reproduces this error by any chance? Perhaps the problem is linked to you wanted to add graphs to another powerpoint that was not originally made with the export package (which I never tested if that works or not)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.