SUMMARY QUESTION.

Should there be a `^vignettes$` line in `.Rbuildignore` files?


BACKGROUND.

I am trying to trim the size of the 'oce' package.  It has several vignettes, 
and I would like to learn how to include them optimally in my tarball.

The listing given in DETAILS reveals a duplicated vignette (`.Rmd`) file.  (I 
see such duplication for all the vignettes.)

The files in `oce/inst/doc` are created by `devtools::document(roclets = 
c('rd', 'collate', 'vignette')))` and so I am guessing that I should leave them 
intact.  However, I don't see the sense in the `vignettes` directory being 
included in the tarball, since it just contains duplicates of `.Rmd` files 
already included in `inst/doc`.

I wonder ... should add `^vignettes$` to my `.Rbuildignore` file to prevent the 
duplicates?  I can't find advice online that answers the question.

Thanks.  Dan Kelley, Dept. Oceanography, Dalhousie University, Nova Scotia, 
Canada.


DETAILS.

This is what I have at present.

➜  oce git:(master) ✗ tar -vtf ~/git/oce_1.3-0.tar.gz|grep map_proj
-rw-r--r--  0 kelley staff    3602 28 Jan 07:27 oce/inst/doc/map_projections.R
-rw-r--r--  0 kelley staff   12682 28 Jan 06:13 oce/inst/doc/map_projections.Rmd
-rw-r--r--  0 kelley staff  747469 28 Jan 07:27 
oce/inst/doc/map_projections.html
-rw-r--r--  0 kelley staff   12682 28 Jan 06:13 
oce/vignettes/map_projections.Rmd

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

Reply via email to