Re: [R] R CMD build creates tar file instead of tar.gz file

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Thu, 24 Mar 2011 10:57:15 -0400

On 24/03/2011 10:36 AM, Ian Schiller wrote:
> Dear all,
>
> I'm trying to create my own package by following for instance http://epub.ub.uni-muenchen.de/6175/2/tr036.pdf In step 6 (page 19) it says that the command 'R CMD build<mypackage>' should result in a tar.gz file. However, after running the command I end up with a tar file only (no gz extension). I also get the following warnings in the command prompt
>
> C:\Program Files\R\R-2.12.2\src>R CMD build HSROC
> * checking for file 'HSROC/DESCRIPTION' ... OK
> * preparing 'HSROC':
> * checking DESCRIPTION meta-information ... OK
> cygwin warning:
> MS-DOS style path detected: C:/Program Files/R/R-2.12.2/src/HSROC_1.0.0.tar
> Preferred POSIX equivalent is: /cygdrive/c/Program Files/R/R-2.12.2/src/HSROC_
> 1.0.0.tar
> CYGWIN environment variable option "nodosfilewarning" turns off this warning.

I think that might mean you are running the wrong version of tar. Did you put the Rtools/bin directory first in your path? What does

tar --version

give? The current Rtools version says

tar (GNU tar) 1.21
Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

but Cygwin is distributing a newer one.

I do see some oddities with build in 2.12.2 in Windows 7: on my first attempt, I got all sorts of errors, e.g.

but on the second attempt it was fine. This may be an interaction with a virus checker; that's often a problem on Windows.

Duncan Murdoch

> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> cygwin warning:
> MS-DOS style path detected: C:/Program Files/R/R-2.12.2/src/HSROC_1.0.0.tar
> Preferred POSIX equivalent is: /cygdrive/c/Program Files/R/R-2.12.2/src/HSROC_
> 1.0.0.tar
> CYGWIN environment variable option "nodosfilewarning" turns off this warning.
> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> * checking for LF line-endings in source and make files
> * checking for empty or unneeded directories
> * building 'HSROC_1.0.0.tar.gz'
> cygwin warning:
> MS-DOS style path detected: C:/Program Files/R/R-2.12.2/src/HSROC_1.0.0.tar
> Preferred POSIX equivalent is: /cygdrive/c/Program Files/R/R-2.12.2/src/HSROC_
> 1.0.0.tar
> CYGWIN environment variable option "nodosfilewarning" turns off this warning.
> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> cygwin warning:
> MS-DOS style path detected: C:/Program Files/R/R-2.12.2/src/HSROC_1.0.0.tar
> Preferred POSIX equivalent is: /cygdrive/c/Program Files/R/R-2.12.2/src/HSROC_
> 1.0.0.tar
> CYGWIN environment variable option "nodosfilewarning" turns off this warning.
> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>
>
> I have installed R-2.12.2 which should be the latest version. I also have the latest version of Rtools (Rtools212.exe). My operating system is Windows XP professional x64 edition if it can help. Any clues on how to solve this issue would be appreciated.
>
> Ian
>
> ******************************************************************************************************************************
> IAN SCHILLER, M.Sc.
>
> Statistical research assistant,
> Division of Clinical Epidemiology, McGill University Health Center
> Assistant de recherche en statistiques,
> Département d'Épidémiologie Clinique, Centre Universitaire de Santé Mcgill
>
> Tel: 514 934 1934 ext. 36925
> Email: ian.schiller_at_clinepi.mcgill.ca
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Mar 2011 - 14:59:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Mar 2011 - 17:00:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive