poissonconsulting / subfoldr2

An R package to facilitate saving and loading objects, data, plots, numbers and strings
https://poissonconsulting.github.io/subfoldr2/
Other
2 stars 0 forks source link

- Add argument to `sbf_print()` to skip plotting #103

Closed nehill197 closed 2 months ago

nehill197 commented 3 months ago

Closes #101 This is a workaround for the issues with sbf_print() that can cause R to crash, by skipping the printing of plots. By setting options(sbf.plot = TRUE) in the header, no plots will print, but will still be saved as .png files with sbf_save_plot().

See this issue for background: https://github.com/tidyverse/ggplot2/issues/3538

aylapear commented 2 months ago

After merging this in please do a version bump and update the news file with the details about the change to the function and the new argument added. I think this would be a minor bump as it is adding new functionality but could be a patch as it is fixing a bug in a way.