Re: [R-pkg-devel] PkgA imports PkgB, and PkgB suggests PkgA?

2023-11-04 Thread Shu Fai Cheung
Many many thanks for the clarification, which is very clear! The case of testthat is a very good example, as many packages suggest it. Regards, Shu Fai On Sat, Nov 4, 2023 at 4:41 PM Iñaki Ucar wrote: > > > > El sáb., 4 nov. 2023 5:43, Shu Fai Cheung escribió: >> >> Hi All, >> >> I vaguely rec

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

2023-11-04 Thread Duncan Murdoch
On 04/11/2023 5:35 a.m., wayne.w.jo...@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

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

2023-11-04 Thread Wayne.W.Jones
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. Wayne -Original Message- From: Jones, Way

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

2023-11-04 Thread Wayne.W.Jones
Hi Vladimir, Thanks for the suggestions. I've considered both but I can't see a way of doing what I'm trying to achieve without explicitly adding a call to win.metafile in my code. To explain a little more... GWSDAT is a Shiny App so we don't use the traditional R graphics device - so your su

Re: [R-pkg-devel] PkgA imports PkgB, and PkgB suggests PkgA?

2023-11-04 Thread Iñaki Ucar
El sáb., 4 nov. 2023 5:43, Shu Fai Cheung escribió: > Hi All, > > I vaguely recall that, on CRAN, if PkgA imports PkgB, then PkgB cannot > import PkgA. (Please correct me if I am wrong.) > > How about this? > > PkgA imports PkgB (because PkgA has some helper functions for using PkgB) > PkgB sugge