Re: [R-pkg-devel] Getting a package ready for CRAN - some questions

2016-05-31 Thread Hadley Wickham
On Mon, May 30, 2016 at 7:10 PM, Roy Mendelssohn - NOAA Federal
 wrote:
> Hi All:
>
> I am in the midst of some minor revisions to my xtractomatic package, which 
> up till now has only been on github.  Since ncdf4 for Windows is now 
> available from CRAN  (and many thanks to whomever is responsible for that) I 
> thought I would try to get it into CRAN.  Some questions:
>
> 1.  The vignette uses a lot of packages that the main code does not - I put 
> those in the DESCRIPTION file, under  “Suggests”, is this correct?

Yes.

> 2. The vignette uses ggfortify, which was in CRAN for 3.2.x, but is not in 
> CRAN for 3.3.x.  Do I assume then that a submission will fail, or will the 
> submission work but just without the vignette?  Or can I include in the 
> vignette the command to install from github  (using devtools), and then that 
> will build?

You definitely do not want to install packages when running a vignette.

Given that ggfortify has been archived
(https://cran.r-project.org/web/packages/ggfortify/index.html), I'd
recommend using a different package (maybe broom?).

> 3. On a remote build, my vignette is likely to fail to build.  That is 
> because the vignette downloads a large amount of data in many requests, and 
> if for any reason any one of the downloads fail or times out, the vignette 
> build will fail.  As above, will this cause the entire submission to fail, or 
> just the vignette to fail?  And is there anyway to provide a pre-built 
> vignette in the submission?

You shouldn't be downloading data in a vignette. Can you make a
separate data package that just bundles the data?

Hadley

-- 
http://hadley.nz

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

[R-pkg-devel] Getting a package ready for CRAN - some questions

2016-05-31 Thread Roy Mendelssohn - NOAA Federal
Hi All:

I am in the midst of some minor revisions to my xtractomatic package, which up 
till now has only been on github.  Since ncdf4 for Windows is now available 
from CRAN  (and many thanks to whomever is responsible for that) I thought I 
would try to get it into CRAN.  Some questions:

1.  The vignette uses a lot of packages that the main code does not - I put 
those in the DESCRIPTION file, under  “Suggests”, is this correct?

2. The vignette uses ggfortify, which was in CRAN for 3.2.x, but is not in CRAN 
for 3.3.x.  Do I assume then that a submission will fail, or will the 
submission work but just without the vignette?  Or can I include in the 
vignette the command to install from github  (using devtools), and then that 
will build?

3. On a remote build, my vignette is likely to fail to build.  That is because 
the vignette downloads a large amount of data in many requests, and if for any 
reason any one of the downloads fail or times out, the vignette build will 
fail.  As above, will this cause the entire submission to fail, or just the 
vignette to fail?  And is there anyway to provide a pre-built vignette in the 
submission?

I am asking all of this so I am certain of the answers.  I know the CRAN team 
does a lot of work, and the more I can be certain that my submission will work 
the easier it will be for everybody.

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 address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@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.

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel