I'm at the final steps of publishing my package. As I did a initial submit to CRAN, they commented about the examples check:
Also,
* checking examples ... [169s/169s] OK Examples with CPU or elapsed time > 5s user system elapsed function1 66.240 0.004 66.248 function2 54.404 0.020 54.430 function3 47.060 0.192 47.252
and the CRAN Policy asks for only a few seconds: can you pls reduce the above run times accordingly?
Each listed function above consists on a estimator using a iterative proccess and they use pretty intensive computations.
Here is the deal: I can limit, just for the illustrative example, the number of iterations with a parameter of these functions, but these would provide estimates that did not converge. Also, the illustrative dataset used for the estimation proccess is pretty small, so I can't get too much better without limiting the iterations number.
In other words, I have long time examples on my package... what is the best strategy/practice to publish the package in this situation? Should I limit the iterations, remove the examples or there is another way?
This is my first attempt to publish a package. Sorry for this kind of doubt.
\dontrun{...}
. The examples will still be there for the user to reference, but they won't get run bycheck
. – Distributivecheck
won't be running anything in\dontrun{}
, but it will run anything in\dontshow{}
– Distributive