[R] package.skeleton warning

Duncan Murdoch murdoch.duncan at gmail.com
Wed Apr 29 14:00:45 CEST 2015

On 29/04/2015 3:49 AM, carol white wrote:
> So I finally used
> filenames <- list.files("~/Desktop/myPkg/R/", full.names = TRUE)
> package.skeleton(name = "myPackage", code_files = filenames)
> and still despite the warnings mentioned before, the man and R folders
> seem to have been created correctly. I had put the vignettes folder and
> inst in the source folder (~/Desktop/myPkg) at the same level as R
> folder. inst contains citation. but after invoking package.skeleton,
> nothing happened to copy the vignettes nor inst folders in the myPackage
> folder. Should package.skeleton have taken care of them or I should
> process separately?

It sounds as though myPkg is already a complete package, so you probably
shouldn't be using package.skeleton at all.  It's for starting out, not
for modifying an existing package.

So in answer to your question:  package.skeleton won't do anything with
your inst or vignette directories.  You'll need to copy those into the
new package yourself.

Duncan Murdoch

More information about the R-help mailing list