Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExportConfiguration$savePlot() fails with defaults #386

Open
PavelBal opened this issue Sep 28, 2022 · 1 comment
Open

ExportConfiguration$savePlot() fails with defaults #386

PavelBal opened this issue Sep 28, 2022 · 1 comment

Comments

@PavelBal
Copy link
Member

Especiall the format field, which is by default NULL, should be initalized with something meaningful.

@PavelBal
Copy link
Member Author

it seems that format is completely ignored, and output device is determined by the file name??

> exportConfig$savePlot(gridPlot, fileName = "All plots")
Error in `plot_dev()`:
! Unknown graphics device ''
Backtrace:
 1. exportConfig$savePlot(gridPlot, fileName = "All plots")
 2. ggplot2::ggsave(...)
      at TLF-Library/R/plotconfiguration-export.R:84:6
 3. ggplot2:::plot_dev(device, filename, dpi = dpi)

Using .png extension in file name works:

> exportConfig$savePlot(gridPlot, fileName = "All plots.png")
> 

I think file name must not come with the extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant