The examples are dual purpose. They work like unit tests, and they show humans how the code works. If you have a separate unit testing section you can mock out the parts that take a long time (e.g. "get data from..."). Then just put the slow bits in your .Rd files into \dontrun blocks. On Tue, Apr 23, 2019 at 5:54 PM Roy Mendelssohn - NOAA Federal <
roy.mendelssohn at noaa.gov> wrote:
No C++ in my package, but I think sf or rgdal may have c++. I have graphics examples overlaying grids on maps using ggplot2. trying to get those under 5 sec and still have a meaningful example is nigh impossible. I mean I can make up an example that will be under 5 sec, but it will neither be illuminating nor testing of anything. I have even included the test data in the package so that it is faster, (this package maps data from a package that downloads data from a web service) but I am still not there. Also the times I get at home are about half of what CRAN or RHub get. I have a similar problem with a package that downloads data from a web service. Even the most minimal example takes more than 5 seconds. I fully understand CRAN's position. When you have 1000s of package to test on different OS, if everything takes too long it would be a disaster. At the same time, basically the last three days I have been trying to figure out how to get the times down. -Roy On Apr 23, 2019, at 5:33 PM, Steven Scott <steve.the.bayesian at gmail.com> wrote: Roy, I don't have an answer for you, but I have a similar issue. Does your code happen to have a C++ component that takes a long time to compile? On Tue, Apr 23, 2019 at 5:11 PM Roy Mendelssohn - NOAA Federal via R-package-devel <r-package-devel at r-project.org> wrote: ---------- Forwarded message ---------- From: Roy Mendelssohn - NOAA Federal <roy.mendelssohn at noaa.gov> To: Roy Mendelssohn - NOAA Federal via R-package-devel < r-package-devel at r-project.org> Cc: Bcc: Date: Tue, 23 Apr 2019 17:11:14 -0700 Subject: Linux Errors on RHub Hi All: I am checking a package I am hoping to submit to CRAN on RHub. The Windows and Fedora runs worked but the Ubuntu test ended because of the following: #> Warning messages: 3203#> 1: In i.p(...) : installation of package ?rgdal? had non-zero exit status 3204#> 2: In i.p(...) : installation of package ?sf? had non-zero exit status 3205#> 3: In i.p(...) : I have a few details to work out on Mac and Windows tests (capitalization, a note to CRAN that a spelling is correct, reduce times of examples), but given that rgdal and sf are packages on CRAN if I can clean up the other items is it appropriate to go ahead and submit? Thanks, -Roy ********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new street address*** 110 McAllister Way Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr. ---------- Forwarded message ---------- From: Roy Mendelssohn - NOAA Federal via R-package-devel < r-package-devel at r-project.org> To: Roy Mendelssohn - NOAA Federal via R-package-devel < r-package-devel at r-project.org> Cc: Bcc: Date: Tue, 23 Apr 2019 17:11:14 -0700 Subject: [R-pkg-devel] Linux Errors on RHub
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel ********************** "The contents of this message do not reflect any position of the U.S. Government or NOAA." ********************** Roy Mendelssohn Supervisory Operations Research Analyst NOAA/NMFS Environmental Research Division Southwest Fisheries Science Center ***Note new street address*** 110 McAllister Way Santa Cruz, CA 95060 Phone: (831)-420-3666 Fax: (831) 420-3980 e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/ "Old age and treachery will overcome youth and skill." "From those who have been given much, much will be expected" "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.