Tom Wenseleers

Results 91 comments of Tom Wenseleers

Could you please provide a full reproducible example, so we can try on our end?

Is the problem here not just that you are trying to pass a base R plot as an object, which is not possible? (You can only do that with ggplots)...

Ha then you would have to use ``` library(export) plot.fun = function(){ print(plot(1:10)) } graph2ppt(fun=plot.fun, file="test.pptx") I think... (You have to set your working directory first, or include the path...

And does exporting ggplots work for you? E.g. ``` library(export) library(ggplot2) library(datasets) x=qplot(Sepal.Length, Petal.Length, data = iris, color = Species, size = Petal.Width, alpha = I(0.7)) graph2ppt(x=x, file="test.pptx") ```

One other thing that may be causing problems is that I believe export is expecting the latest version of R, R 3.5.1... When I try on my ubuntu workstation here...

Could you try if this works on your configuration ``` library(officer) doc

So `officer `works, but the `export `package still doesn't work? Or does exporting `ggplots `work also in `export`?

OK I'll look into it then, because that means I should be able to fix `export `to make it work for this configuration... Would you know by any chance how...

We just did an update to the github export version to make it work also for R users without a screen device. You can install it with `devtools::install_github("tomwenseleers/export")` See if...

And did it work for you in the end?