Re: [Rd] [R-SIG-Mac] check leads to .o files and to packagename-Ex.R

From: Duncan Murdoch <murdoch.duncan_at_gmail.com>
Date: Thu, 02 Jun 2011 10:25:04 -0400

On 02/06/2011 10:13 AM, Ben Bolker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/02/2011 09:12 AM, Duncan Murdoch wrote:
> > On 11-06-02 9:06 AM, Ben Bolker wrote:
> >> On 06/02/2011 06:47 AM, Benilton Carvalho wrote:
> >>> 'R CMD check' should be applied on the .tar.gz, not on the source
> >>> directory.
> >>
> >> Why?
> >
> > Because that is what you will send to others. The reason to check a
> > directory instead of a tar file is to save time: you don't need to
> > recompile all the files, as a normal check does.
> >
> > The help says: "Check R packages from package sources, which can
> >> be directories or package 'tar' archives with extension '.tar.gz',
> >> '.tar.bz2' or '.tgz'." I just skimmed through the relevant section
> >> (1.3.1) in the R Extensions manual, and it doesn't say anything about
> >> running on tarballs being preferred.
> >>
> >> Add my vote to the wishlist that the src directory should get cleaned
> >> after R CMD check.
> >
> > Then the advantage of checking a directory would be lost.
> >
> > Duncan Murdoch
>
> OK, that makes sense. The logic was not clear to me.
> Do you know offhand if R CMD check uses "make"-like logic to determine
> whether the sources should be recompiled even if there are existing
> .o/.so files, or is that up to the user ... ?

It uses make, with some cleverly written default rules. For Windows, that's GNU make, but other systems might have a different make involved.

Duncan Murdoch



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 02 Jun 2011 - 14:28:28 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 Fri 03 Jun 2011 - 11:50:15 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