Open nwiltsie opened 3 months ago
create.histogram temporarily disables warnings...
create.histogram
https://github.com/uclahs-cds/package-BoutrosLab-plotting-general/blob/54fb8b7afc3571c5ce804db2a46e05a18136a1d0/R/create.histogram.R#L41-L44
... but it then restores the default 0, rather than whatever value had been set:
0
https://github.com/uclahs-cds/package-BoutrosLab-plotting-general/blob/54fb8b7afc3571c5ce804db2a46e05a18136a1d0/R/create.histogram.R#L67-L68
It should instead capture and restore the original value:
original.warn <- getOption('warn'); options(warn = -1); ... options(warn = original.warn);
create.histogram
temporarily disables warnings...https://github.com/uclahs-cds/package-BoutrosLab-plotting-general/blob/54fb8b7afc3571c5ce804db2a46e05a18136a1d0/R/create.histogram.R#L41-L44
... but it then restores the default
0
, rather than whatever value had been set:https://github.com/uclahs-cds/package-BoutrosLab-plotting-general/blob/54fb8b7afc3571c5ce804db2a46e05a18136a1d0/R/create.histogram.R#L67-L68
It should instead capture and restore the original value: