Skip to content

[R-pkg-devel] Help with correcting error in package

5 messages · Dev Chakraborty, Joshua Ulrich, Roy Mendelssohn - NOAA Federal

#
Dear All,

I tried unsuccessfully to upload a package named RJafroc to CRAN. On my OSX
machine it passes R CMD Check with no errors, warnings or notes. However, I
get the following output from CRAN, from which I cannot tell which function
is causing the error (I am truncating the intermediate lines, which appear
to be the opening screen upon starting R, with ellipses; the full output
produced by the CRAN pre-test is attached):



*** running examples for arch 'x64' ... ERROR*


*Running examples in 'RJafroc-Ex.R' failed*


*The error occurred in:*


*R Under development (unstable) (2018-02-01 r74194) -- "Unsuffered
Consequences"*

*Copyright (C) 2018 The R Foundation for Statistical Computing*

*Platform: x86_64-w64-mingw32/x64 (64-bit)*


*R is free software and comes with ABSOLUTELY NO WARRANTY.*

*You are welcome to redistribute it under certain conditions*


*...*

*...*

*Type 'q()' to quit R.*


*> pkgname <- "RJafroc"*

*> source(file.path(R.home("share"), "R", "examples-header.R"))*


Thanking you in advance for any help rendered,

Sincerely,

Dev

--
Dev Chakraborty, PhD
Professor of Radiology, retired
#
On Sat, Feb 3, 2018 at 11:44 AM, Dev Chakraborty <dpc10ster at gmail.com> wrote:
Submit your package to http://win-builder.r-project.org.  That will
provide you access to all the output in the Rcheck.RJafroc directory.

Also note that the "Confirmation" step of the submission process
suggests, "You could [run R CMD check] using the win-builder service
at http://win-builder.r-project.org".  And the CRAN Repository Policy
says, "It should be normal for those without Windows machines of their
own to use the winbuilder service to check a package before
submission."  You could also use https://builder.r-hub.io/.  Both are
great resources for the community.

  
    
#
I would add to make certain you submit to both "R-release" and "R-devel" in particular since the error you are getting is from "R-devel".  If you install the "devtools" package,  that can do the submission to both for you.
There has been previous discussion on this list that "R-devel" does not load a complete distribution, therefore they may be different requirements on what is "Imported" or "Suggested".

-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.
#
Thank you; this is most helpful; Dev

On Sat, Feb 3, 2018 at 1:16 PM, Joshua Ulrich <josh.m.ulrich at gmail.com>
wrote:

  
    
#
Thank you; I appreciate the helpful response; dev

On Sat, Feb 3, 2018 at 1:23 PM, Roy Mendelssohn - NOAA Federal <
roy.mendelssohn at noaa.gov> wrote: