From murdoch.duncan at gmail.com  Fri Mar 22 22:47:53 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 22 Mar 2013 17:47:53 -0400
Subject: [Rd] R CMD check in R-3.0.0 gives warnings
In-Reply-To: <A699D8A3-8DFE-46A2-B245-88C808F87DE7@xs4all.nl>
References: <74BF18D6-268F-4E9D-9FEE-41782B54CE72@xs4all.nl>
	<20812.48755.904094.959054@max.nulle.part>
	<A699D8A3-8DFE-46A2-B245-88C808F87DE7@xs4all.nl>
Message-ID: <514CD189.3070801@gmail.com>

On 13-03-22 4:40 PM, Berend Hasselman wrote:
>
> On 22-03-2013, at 21:26, Dirk Eddelbuettel <edd at debian.org> wrote:
>
>>
>> On 22 March 2013 at 21:03, Berend Hasselman wrote:
>> | I am running R CMD check on my package nleqslv with R-3.0.0 beta (2013-03-33 r62364) on Mac OS X 10.6.8
>> |
>> | In contrast with R-2.15.3 R CMD check now issues a note for
>> |
>> | - Mercurial version control files .hgignore, .hgtags and directory .hg. These are however included in .hidden_file_exclusions.
>> | - typical Mac Finder files .DS_Store
>> |
>> | All of these are ignored when executing R CMD check --as-cran.
>> |
>> | I can't remove the .hg* files and directories. I could remove the .DS_Store files to avoid the note.
>>
>> A few years ago the "Right Way To Do Things" changed.  You are really
>> supposed to do 'R CMD check' off the tar.gz, and you *do* have a toggle to
>> exclude what goes into the tar.gz:   .Rbuildignore
>>
>
> which I have. And making a .tar.gz will ignore the version control files. So why not ignore them when doing a check on a (allowed) package directory?

Because that makes the code messier.  A directory is treated as if it 
was just extracted from the tarball.  If the code had to distinguish two 
different ways of getting to that state it would be harder to maintain.

Duncan Murdoch




>
>  From  R CMD check --help
> Usage: R CMD check [options] pkgs
>
> Check R packages from package sources, which can be directories or
> package 'tar' archives with extension '.tar.gz', '.tar.bz2',
> '.tar.xz' or '.tgz'.
>
> So a directory is allowed.
>
>> | The note is harmless but annoying and strikes me as slightly overzealous.
>>
>> So are are many other warnings.
>>
>
> It's a note and not a warning.
>
>> But in the long run I am happy they are there so that eg my system does not
>> get polluted with your .hg and .DS_Store files which are of zero use to me.
>>
>
> My .hg and .DS_Store files will not pollute your system.
>
> Berend
>
>> Warnings are your friends. Be nice to them.
>>
>> Dirk
>>
>>
>> --
>> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] R CMD check in R-3.0.0 gives warnings
Duncan Murdoch