[R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Hi, I am trying to figure out how to fix warnings from two of the CRAN machines on the submission of an update to a package. The only change to my package was to add a "show" method to one of the S4 classes, which was requested by a reviewer of the paper we submitted. The inability to get this

[R-pkg-devel] Function editGrob not found unless grid is in Depends

2020-11-11 Thread Ayala Hernandez, Rafael
Dear all, I have recently been trying to write a plotting function where a external PNG file is drawn onto a ggmap object. I managed to achieve this by using ggmap::inset , inputting as a grob the result of applying grid::rasterGrob to the image rotated with magick::image_rotate . I therefore

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Uwe Ligges
You have to suggest flexmix. Best, Uwe Ligges On 11.11.2020 14:44, Kevin R. Coombes wrote: Hi, I am trying to figure out how to fix warnings from two of the CRAN machines on the submission of an update to a package. The only change to my package was to add a "show" method to one of the S4 clas

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Duncan Murdoch
Uwe suggested you suggest flexmix, but I see below you already tried that. I'd like to take a look, but I can't find your package. The existing version on CRAN gives the URL as http://oompa.r-forge.r-project.org/, but I can't see it mentioned there. Duncan Murdoch On 11/11/2020 8:44 a.m., K

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Hi Uwe, Thanks for the suggestion. I thought of that idea last night, and tried it with the latest submission of version 0.11.4 of Mercator. That version is still in the submission queue waiting for manual inspection, but it gave the same error message. (See https://win-builder.r-project.org/

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Uwe Ligges
Next guess is that you need more, because you may have an object that needs the flexmix, so likely something S4 related? I can take a closer look. Best, Uwe Ligges On 11.11.2020 17:30, Duncan Murdoch wrote: Uwe suggested you suggest flexmix, but I see below you already tried that. I'd lik

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Hi Duncan, Oops; I didn't realize I had forgotten to push updates to the OOMPA web site. The code for Mercator is contained as part of the Thresher project in the subversion repository on R-Forge. (https://r-forge.r-project.org/projects/thresher/) It's under pkg/Mercator below that URL Th

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Duncan Murdoch
Okay, I've tried testing on my Mac with R 4.0.3 and R-devel for the new one, 4.0.3 for the CRAN version. I'm not seeing any check error with the CRAN version. I get an error trying to check 0.11.4 from R-forge because I don't have flexmix installed. If I take flexmix out of the Suggests list

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
HI Uwe, That might be the key observation. The change to Mercator in this package was to add a "show" method to an S4 class. In its NAMESPACE, the flexmix package also exports a "show" method. Both "flexmix" and "Mercator" have an   import("methods") directive in their NAMESPACE files, which

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Hi Duncan, I just sent a longer version of this message, but it looks to me like the underlying issue is the fact that flexmix and Mercator both define and export "show" methods for their S4 classes.  What confuses me is why the NAMESPACE of a package that is merely Suggest'ed by something se

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Oh, I forgot to mention explicitly that checking (with --as-cran) on the development version of R on Windows also produces no errors or warnings. On 11/11/2020 1:39 PM, Kevin R. Coombes wrote: Hi Duncan, I just sent a longer version of this message, but it looks to me like the underlying issu

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Duncan Murdoch
Here's what I think is happening. In the movMF:::.onLoad function there's a test whether flexmix is installed. If found, then it is loaded and some methods are set. (I'm not sure what caused flexmix to be installed: I didn't intentionally install it, but it ended up in there when I installe

Re: [R-pkg-devel] Strange error from CRAN on package submission

2020-11-11 Thread Kevin R. Coombes
Hi Duncan, Thanks for the help. For now (since I want my package to get into CRAN so I can resubmit my paper), I'll add the "Import" clause, and write myself a note to try removing it later. Best,   Kevin On 11/11/2020 4:44 PM, Duncan Murdoch wrote: Here's what I think is happening. In the