[Rd] R's internal tar ignores files in sub-directories

2014-09-30 Thread Kevin Ushey
E.g. I am seeing: dir - file.path(tempdir(), test-tar) dir.create(dir) setwd(dir) dir.create(foo, showWarnings = FALSE) file.create(foo/bar.R) tar(test.tar, files = foo/bar.R) dir.create(untarred) untar(test.tar, exdir = untarred) list.files(untarred,

Re: [Rd] R's internal tar ignores files in sub-directories

2014-09-30 Thread Harris A. Jaffee
Sounds like a bug to me, at least in documentation. I would say that it ignores them by accident. I doubt that skipping files is intended. The problem appears to be that the 'files' argument to tar() becomes the 'path' argument to list.files(), and the spec for 'path' is not a whole lot more