[Rd] tar R command

Dario Strbenac D.Strbenac at garvan.org.au
Mon Nov 29 04:00:07 CET 2010


Hello,

The documentation for the tar command leads me to think there is an internal implementation when the command can't be found in the OS.

However, it doesn't seem to be the case, as I get an empty .tar file generated on a small example I made :

> dir(pattern = "jpg")
[1] "MA56237502_635.jpg"
> file.info("MA56237502_635.jpg")
                     size isdir mode               mtime               ctime               atime exe
MA56237502_635.jpg 229831 FALSE  666 2010-11-29 13:05:49 2010-11-29 13:00:36 2010-11-29 13:00:36  no
> tar("example.tar", files = dir(pattern = "jpg"))
> file.info("example.tar")
            size isdir mode               mtime               ctime               atime exe
example.tar 1024 FALSE  666 2010-11-29 13:43:29 2010-11-29 13:42:30 2010-11-29 13:42:30  no

Is this an unimplemented feature ?

> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-pc-mingw32/x64 (64-bit)
...                ...               ...

Thanks,
       Dario.



More information about the R-devel mailing list