The filename
can be passed without the preceding
"report/"
, and without the ".png"
filename extension.
Specifically, the function prepends "report/"
to the filename if (1)
the filename does not contain a "/"
separator, (2) the working
directory is not report
, and (3) the directory report
exists.
The function also appends ".png"
to the filename if it does not
already have that filename extension.
This automatic filename manipulation can be bypassed by using the png
function directly.