[R-pkg-devel] [r-package-devel] Win.Metafile and package check - "Found the platform-specific device:"
Vladimir Dergachev
vo|ody@ @end|ng |rom m|nd@pr|ng@com
Fri Nov 3 21:02:51 CET 2023
On Fri, 3 Nov 2023, Wayne.W.Jones using shell.com wrote:
> Dear R-Package-Devel,
>
> As part of GWSDAT package (https://github.com/waynegitshell/GWSDAT) we support the option to output plots to a WMF (https://r-graphics.org/recipe-output-vector-wmf) format if, and only if, the user is on Windows. However, when I run the package checks on here it complains about using a platform specific function with the following message:
>
> Found the platform-specific device:
> 'win.metafile'
> dev.new() is the preferred way to open a new device, in the unlikely
> event one is needed.
>
> In my opinion this is a false positive - and a similar issue has previously been reported here: https://stackoverflow.com/questions/70585796/unable-to-understand-1-note-in-devtoolscheck-caused-by-a-platform-specific-d
>
> Any ideas on how I modify the code and package submission to automatically pass the checks?
Two suggestions:
* let users specify the graphics device they want
* reading manpage for dev.new() it accepts a bunch of options - there is
probably a way to request the metafile device you want. But I could not
find that in documentation.
best
Vladimir Dergachev
>
> Thanks,
>
> Wayne
>
>
>
> ----------------------------------------------------------------------------------------
> Wayne Jones
> Principal Data Scientist
> Decarbonisation Data Science
>
> Tel: +44 (0) 207 934 4330
> Projects and Technology, Shell Research Limited, Shell Centre, York Road, London, SE1 7NA
> Email: Wayne.W.Jones using shell.com<mailto:Wayne.W.Jones using shell.com>
> Intranet: Shell.ai<https://eu001-sp.shell.com/sites/AAFAA6690/Shell.ai/homepage.aspx>
> Internet: www.shell.ai<http://www.shell.ai/>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
More information about the R-package-devel
mailing list