Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-28 Thread Dirk Eddelbuettel
On 27 December 2022 at 13:27, Duncan Murdoch wrote: | On 15/12/2022 10:25 a.m., Spencer Graves wrote: | > I know that some on this list do not like this construct, but it has | > helped me manage this problem for several years. NOTE: This CRAN | > function is NOT maintained by anyone on C

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-28 Thread Duncan Murdoch
On 28/12/2022 7:06 a.m., Daniel Kelley wrote: > I've been reminded today why this is such a bad idea.  I'm preparing an update of the rgl package.  As I attempt to be a good citizen, I'm doing comparison checks of all of the 300 packages that use it, to see if my updates break anything. Hi Dunc

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-27 Thread Duncan Murdoch
On 15/12/2022 10:25 a.m., Spencer Graves wrote: The "sos" package includes a function "CRAN", which is used for that purpose. The examples section in "findfn.Rd" includes the following: # Skip these tests on CRAN, # because they take more than 5 seconds if(!CRAN()){ ... }

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-16 Thread Ismail Otoakhia
Thanks, everyone. From the ideas shared, I adopted the following on the .rd files: \examples{ \dontrun{ ... ... ... } } The "..." are the examples which take more than 5 seconds to run. I hope this resolved the CRAN team's request. E. I Otoakhia On Thu, Dec 15, 2022 at 4:26 PM Spencer Graves <

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-15 Thread Spencer Graves
On 12/15/22 9:02 AM, Ben Bolker wrote: On 2022-12-15 9:57 a.m., Brian G. Peterson wrote: On 12/15/22 08:34, Ismail Otoakhia wrote: The R package 'ardl.nardl' has some examples that take more than 5 seconds to run. I was advised by the CRAN team to reduce the run time to less than 5 secon

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-15 Thread Ben Bolker
On 2022-12-15 9:57 a.m., Brian G. Peterson wrote: On 12/15/22 08:34, Ismail Otoakhia wrote: The R package 'ardl.nardl' has some examples that take more than 5 seconds to run. I was advised by the CRAN team to reduce the run time to less than 5 seconds. How can this be achieved? - you can

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-15 Thread Brian G. Peterson
On 12/15/22 08:34, Ismail Otoakhia wrote: The R package 'ardl.nardl' has some examples that take more than 5 seconds to run. I was advised by the CRAN team to reduce the run time to less than 5 seconds. How can this be achieved? - you can lower the amount of data in the example - you can use

[R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-15 Thread Ismail Otoakhia
The R package 'ardl.nardl' has some examples that take more than 5 seconds to run. I was advised by the CRAN team to reduce the run time to less than 5 seconds. How can this be achieved? E. I Otoakhia [[alternative HTML version deleted]] _