Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Michael L Friendly
Thanks, Dirk Just to clarify-- In my packages, candisc, heplots, vcdExtra I have mostly 2D graphic methods, but some 3D methods that use rgl. I therefore put rgl into Suggests: Could I solve this by making rgl a Depends: ? -Michael -Original Message- From: Dirk Eddelbuettel Sent:

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Dirk Eddelbuettel
On 12 December 2020 at 16:24, Michael L Friendly wrote: | I got the email below concerning 3 of my packages but wonder if they are false alarms or | if not, how to locate & fix the problem. | | This concerns packages: ... | | Suggested packages should be used conditionally: see

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Jeff Newmiller
Examples should use dontrun to avoid calling functions that call stop. On December 12, 2020 8:24:50 AM PST, Michael L Friendly wrote: >I got the email below concerning 3 of my packages but wonder if they >are false alarms or >if not, how to locate & fix the problem. > >This concerns

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Ben Bolker
I think you're supposed to skip the example (throwing a warning, if you like ...) if rgl isn't available, rather than throwing an error ... ? On 12/12/20 11:24 AM, Michael L Friendly wrote: I got the email below concerning 3 of my packages but wonder if they are false alarms or if not, how

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Michael L Friendly
I got the email below concerning 3 of my packages but wonder if they are false alarms or if not, how to locate & fix the problem. This concerns packages: ... Suggested packages should be used conditionally: see �1.1.3.1 of 'Writing R Extensions'. Some of these are hard to install on a

[R-pkg-devel] First time CRAN package submission

2020-12-12 Thread Filippo Monari
Hi all, I am trying to submit my first CRAN package, but I am having problems to reproduce and correct all the issues that have been been reported by the first failed attempt. The package has quite a significant amount of Fortran 2003 code, and few lines of C to link with R. I hope some of you

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Spencer Graves
I have tests in my code to detect when something like that is not available. I also have code in "\examples" to skip tests that would encounter that. Hadley's "testthhat:skip_on_cran" is supposed to suppress tests like that on CRAN. I have so far failed to understand how to use

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Ben Bolker
Apologies if I'm telling you something you already know: By default, fda::CRAN() uses the presence of environment variables matched by the regexp "^_R_" as a heuristic to decide whether it's being running on CRAN. testthat::skip_on_cran() calls testthat::on_cran() to look for an

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Spencer Graves
On 2020-12-12 19:50, Duncan Murdoch wrote: On 12/12/2020 6:01 p.m., Ben Bolker wrote: On 12/12/20 5:50 PM, Duncan Murdoch wrote: On 12/12/2020 4:08 p.m., Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:      Apologies if I'm telling you something you

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread John Fox
Hi Michael, It should be fine to have rgl in Suggests, and to have the 3D graphics functions that use rgl throw an error if rgl is absent. What's not fine is having these errors triggered in the absence of rgl when examples are run or vignettes are compiled. Putting rgl into Depends rather

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Ben Bolker
On 12/12/20 5:50 PM, Duncan Murdoch wrote: On 12/12/2020 4:08 p.m., Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:     Apologies if I'm telling you something you already know:     By default, fda::CRAN() uses the presence of environment variables matched by

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Duncan Murdoch
On 12/12/2020 4:41 p.m., Ben Bolker wrote: On 12/12/20 4:08 PM, Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:    Apologies if I'm telling you something you already know:    By default, fda::CRAN() uses the presence of environment variables matched by the

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Ben Bolker
On 12/12/20 5:53 PM, Duncan Murdoch wrote: On 12/12/2020 4:41 p.m., Ben Bolker wrote: On 12/12/20 4:08 PM, Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:     Apologies if I'm telling you something you already know:     By default, fda::CRAN() uses the

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Spencer Graves
Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:   Apologies if I'm telling you something you already know:   By default, fda::CRAN() uses the presence of environment variables matched by the regexp "^_R_" as a heuristic to decide whether it's being running on CRAN.  

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Ben Bolker
On 12/12/20 4:08 PM, Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:    Apologies if I'm telling you something you already know:    By default, fda::CRAN() uses the presence of environment variables matched by the regexp "^_R_" as a heuristic to decide

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Duncan Murdoch
On 12/12/2020 4:08 p.m., Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:   Apologies if I'm telling you something you already know:   By default, fda::CRAN() uses the presence of environment variables matched by the regexp "^_R_" as a heuristic to decide

Re: [R-pkg-devel] CRAN packages suggesting other packages but not using them conditionally

2020-12-12 Thread Duncan Murdoch
On 12/12/2020 6:01 p.m., Ben Bolker wrote: On 12/12/20 5:50 PM, Duncan Murdoch wrote: On 12/12/2020 4:08 p.m., Spencer Graves wrote: Hi, Ben et al.: On 2020-12-12 13:43, Ben Bolker wrote:     Apologies if I'm telling you something you already know:     By default, fda::CRAN() uses the