Re: [Rd] --as-cran and need to ignore.svn directories

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Mon, 12 Mar 2012 18:47:47 +0100

>>>>> Jari Oksanen <jari.oksanen_at_oulu.fi> >>>>> on Mon, 12 Mar 2012 16:59:45 +0000 writes:

    > On 12/03/2012, at 18:03 PM, Paul Johnson wrote:

>> Good morning:
>>
>> I submitted a package update to CRAN and got a bounce because I had
>> not run R CMD check with "--as-cran". I'd not heard of that before,
>> but I'm glad to know about it now.
>>
>> I see it warns when my functions do use partial argument matching, and
>> I like that advice very much.

>>
>> Also I see this warning
>>
>> * checking package subdirectories ... WARNING Found the following
>> directory(s) with names of version control directories: ./.svn
>> ./R/.svn ./data/.svn ./inst/.svn ./inst/doc/.svn ./inst/examples/.svn
>> ./vignettes/.svn These should not be in a package tarball.
>>
>> Is there a way to cause R to ignore the .svn folders while running R
>> CMD check --as-cran or R CMD build?
>>
>> It seems a little tedious to have to copy the whole directory tree to
>> some other place and remove the .svn folders before building. I can do
>> it, but it just seems, well, tedious. I have the feeling that you
>> "frequent flyers" would have worked around this already.

    > Paul,

    > I think the best solution is to 'svn export' svn directory to a     > temporary directory/folder:

No, I don't think that should not be needed.

When building the tarball, 'R CMD build' *does* ignore the .svn folders, at least for me.

Paul's problem was using --as-cran on his SVN *directory* but that's a slight contradiction in itself, as the CRAN maintainers always run the checks on a tarball...

Martin

    > svn export my-svn-directory tmp-pkg-directory
    > R CMD build tmp-pkg-directory
    > R CMD check --as-cran ...

    > The two advantages of 'svn export' that it (1) strips the .svn specific
    > files, and (2) it really exports only those files that really are under
    > version control. More often than once I have had some non-svn files in
    > my svn directory so that *my* version of the package works, but the one     > actually in subversion fails.

    > Cheers, Jari Oksanen

    > -- 
    > Jari Oksanen, Dept Biology, Univ Oulu, 90014 Finland
    > jari.oksanen@oulu.fi, Ph. +358 400 408593, http://cc.oulu.fi/~jarioksa

    > ______________________________________________
    > R-devel_at_r-project.org mailing list     > https://stat.ethz.ch/mailman/listinfo/r-devel

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 12 Mar 2012 - 17:51:19 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Mon 12 Mar 2012 - 19:00:28 GMT.

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

list of date sections of archive