[R-pkg-devel] Internet resources and Errors

Roy Mendelssohn - NOAA Federal roy@mende|@@ohn @end|ng |rom no@@@gov
Fri Sep 24 18:45:01 CEST 2021


Not off-hand.  it is weird that the only error is on Solaris.  I do test on the r-hub Solaris before submission.  But at the same time,  given some of the responses that I have received (which I thank) I probably don't meet the CRAN idea of "graceful".  Easy enough for me to change as I am catching these so just need to change what I do.

I have seen other posts where people comment that the Solaris test machine appears to have an internet connection a good bit slower or less reliable than other test machines,  so timeouts occur,  but I can't discern that with what I have.

-Roy



> On Sep 24, 2021, at 9:29 AM, Bill Dunlap <williamwdunlap using gmail.com> wrote:
> 
> Can you tell if the failure to download was due to a Solaris-specific issue or due to the Solaris test machine not being fully connected to the internet?
> 
> -Bill
> 
> On Fri, Sep 24, 2021 at 7:50 AM Roy Mendelssohn - NOAA Federal via R-package-devel <r-package-devel using r-project.org> wrote:
> Hi All:
> 
> I am getting dinged again on CRAN  (just Solaris for some reason),  and the problem is how to exit if there is a failure of accessing the resource,  I know it has been discussed here before,  but I just am not understanding what is desired to end properly. As I have been reminded:
> 
> 'Packages which use Internet resources should fail gracefully with an informative message
> if the resource is not available or has changed (and not give a check warning nor error).'
> 
> All internet calls are wrapped in 'try()'.  If that shows an error,  I  write a message to the screen about the error,  and call stop(), perhaps with a further message in that call.   Somehow this does not appear to meet the standard.    Can someone then please tell me what I should do instead.  The point is I have checked that the access to the internet resources has worked,  i have seen that it hasn't,  now what should be the steps to take to exit gracefully.
> 
> I also want to add to what others have said about the frustrations of dealing with Solaris.  I have spent a fair amount of time getting things to  work with Solaris which no one uses.  In this instance the package test is only failing on Solaris.   Not a good use of limited time IMO.
> 
> Thanks for any advice.
> 
> -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 using noaa.gov www: https://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.
> 
> ______________________________________________
> R-package-devel using 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 using noaa.gov www: https://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.



More information about the R-package-devel mailing list