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

2020-11-12 Thread Duncan Murdoch
Actually I think it is a bug in the check code. I've just posted about this on the R-devel list. Duncan Murdoch On 12/11/2020 10:13 a.m., Martin Morgan wrote: This seems more like a problem with the CRAN test machine, with the movMF package installed with flexmix available but loaded with

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

2020-11-12 Thread Kevin R. Coombes
Hi Martin, I think you may be right that it is something odd about the configuration on the test machine, since I haven't been able to reproduce it anywhere else. But Duncan did say he could reproduce it in R-devel but not R-4.0.3, so there's that. The error message is buried deep in this

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

2020-11-12 Thread Martin Morgan
This seems more like a problem with the CRAN test machine, with the movMF package installed with flexmix available but loaded with flexmix not available, maybe interacting with a caching mechanism used by the methods package to avoid re-computing methods tables? Otherwise how would movMF ever

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

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

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

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 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

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

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

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

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.,

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

[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