Skip to content
Back to formatted view

Raw Message

Message-ID: <C47AD5F9-8CF0-4244-9591-E1E1BAE38505@krugs.de>
Date: 2020-02-11T08:47:01Z
From: Rainer M Krug
Subject: [R-pkg-devel] R CMD build hanging for some but not all packages
In-Reply-To: <CABtg=K=uxCNuWm7L2JqdLii3mhPiWOaZRgrH6YLia5bzuSCatA@mail.gmail.com>

> On 11 Feb 2020, at 09:42, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
> 
> On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug <Rainer at krugs.de <mailto:Rainer at krugs.de>> wrote:
>> 
>> 
>> 
>> On 10 Feb 2020, at 17:58, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
>> 
>> Maybe you have large, ignored files in the package directory? R first
>> creates a copy of the whole directory and only applies `.Rbuildignore`
>> after that.
>> 
>> THANKS - you solved my question without me having to answer it. As I am using a makefile to build the package, I can easily rename the ignored directories before calling build.
>> 
>> But the question is why are these ignored directories scanned before building the package? They should be ignored anyway?
>> 
>> Rainer
> 
> A makefile is a good idea, but I would rather move the files that are
> needed to a temporary directory, instead of temporarily renaming
> unneeded files, because if the makefile fails, then you won't restore
> them and your project will be in a broken state.

You are right. Having two targets (prepare build, finalise build) which move the files and put them back afterwards would be the best option (and make the build call both).

Is there a way to have an .onExit() type function in a makefile?

Rainer


> 
> Gabor
> 
> [...]

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Orcid ID: 0000-0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Z?rich
Office Y34-J-74
Winterthurerstrasse 190
8075 Z?rich
Switzerland

Office:	+41 (0)44 635 47 64
Cell:       	+41 (0)78 630 66 57
email:      Rainer.Krug at uzh.ch
		Rainer at krugs.de
Skype:     RMkrug

PGP: 0x0F52F982




	[[alternative HTML version deleted]]