Skip to content

Commit

Permalink
Explicitly state source of graphic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob37 committed Jun 8, 2020
1 parent f17b7d1 commit 4c42e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/generatePlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ generatePlots <- function(nr, jobdir, plotRows=3, plotCols=4, writeAsPngs=FALSE)

writePage <- function(outputFunc, jobdir, writeAsPngs, pngPath=NULL, ...) {
if (!is.null(pngPath) && writeAsPngs) {
png(filename=pngPath, width = 11.7, height = 8.3, units="in", res=300)
grDevices::png(filename=pngPath, width = 11.7, height = 8.3, units="in", res=300)
outputFunc(...)
dev.off()
grDevices::dev.off()
}
else {
outputFunc(...)
Expand Down

0 comments on commit 4c42e03

Please sign in to comment.