[R-pkg-devel] [r-package-devel] Win.Metafile and package check - "Found the platform-specific device:"

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sat Nov 4 12:03:11 CET 2023


On 04/11/2023 5:35 a.m., Wayne.W.Jones using shell.com wrote:
> Update:
> 
> I noticed in the ggplot2 codebase they also have a call to win.metafile - see https://github.com/tidyverse/ggplot2/blob/main/R/save.R#L280-L281
> 
> When I use grDevices::win.metafile instead of win.metafile it passes the local checks fine.

That sounds like two bugs in the check code:

1.  It complains about win.metafile even though you made its use 
conditional on being on Windows.

2.  It doesn't complain about grDevices::win.metafile.

I don't think you said, but this looks like a NOTE rather than a WARNING 
or ERROR.  I'd use the grDevices::win.metafile for now, but wouldn't be 
surprised if the NOTE turns up again later when #2 gets fixed.

Duncan Murdoch



More information about the R-package-devel mailing list