Skip to content

[R-pkg-devel] Linux Errors on RHub

2 messages · Steven Scott, Roy Mendelssohn - NOAA Federal

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

            

  
  
#
Have already done that.  Just to run a couple reasonable examples is taking 12 seconds.  On my laptop from home it is more like 8 seconds,  which if you put in the CRAN note with steps taken they will usually allow.  Again,  so I don't seem like I am criticizing CRAN,  I fully understand their requirement.  However,  ggplot2 is just slow drawing maps and overlaying raster or polygons on that map.  Th package does both base maps and ggplot2 maps.  The former render much faster than the latter. 

Also it is faster  if I just save the graphic to an object and not display it, is that kosher for examples?

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.