[R-pkg-devel] R CMD build hanging for some but not all packages

Rainer M Krug R@|ner @end|ng |rom krug@@de
Tue Feb 11 09:38:13 CET 2020



> On 10 Feb 2020, at 17:58, Gábor Csárdi <csardi.gabor using 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


> 
> Gabor
> 
> On Mon, Feb 10, 2020 at 4:54 PM Hong Ooi via R-package-devel
> <r-package-devel using r-project.org> wrote:
>> 
>> Actually, cancel that: it finished successfully, but took 3 minutes to prepare the package:
>> 
>> r$> devtools::build()
>> v  checking for file 'C:\Users\hongo\Documents\GitHub\AzureStor/DESCRIPTION'
>> -  preparing 'AzureStor': (3m 4s)
>> v  checking DESCRIPTION meta-information ...
>> -  installing the package to build vignettes
>> v  creating vignettes (6.5s)
>> -  checking for LF line-endings in source and make files and shell scripts (13.8s)
>> -  checking for empty or unneeded directories
>> -  building 'AzureStor_3.1.0.9000.tar.gz'
>> 
>> This is really weird, I'm used to the package prep step taking 10 seconds at most.
>> 
>> 
>> -----Original Message-----
>> From: R-package-devel <r-package-devel-bounces using r-project.org> On Behalf Of Hong Ooi via R-package-devel
>> Sent: Tuesday, 11 February 2020 3:50 AM
>> To: r-package-devel using r-project.org
>> Subject: [EXTERNAL] [R-pkg-devel] R CMD build hanging for some but not all packages
>> 
>> This is with R 3.6.2 on Windows 10 Pro 1909.
>> 
>> In the last couple of weeks, devtools::build() and devtools::check() have started hanging on some, but not all, of my packages. After some poking around, I discovered that it's actually R CMD build that is having problems, right after the "checking for file 'DESCRIPTION'" step.
>> 
>> A reproducible example can be found by cloning my AzureStor package: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2FAzureStor&data=02%7C01%7Chongooi%40microsoft.com%7Cae76a58d39b64b491a1008d7ae4955a9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637169502304943506&sdata=RW3TQM2D%2F3X43oGhiywDyKd%2F4oo5hFkOoVwZTUe9cOw%3D&reserved=0 If you run "R CMD build ." in the package directory, it should hang. This is a relatively simple package that doesn't require compilation, although it does import some commonly-used packages like httr, curl, jsonlite and xml2.
>> 
>> As far as I can tell, R on Ubuntu works fine. What's going on?
>> 
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&data=02%7C01%7Chongooi%40microsoft.com%7Cae76a58d39b64b491a1008d7ae4955a9%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637169502304943506&sdata=DPyD6zGGcxq41irkaMfMLyjnmqSB96PiIxIh9N2p%2Ft4%3D&reserved=0
>> 
>> ______________________________________________
>> R-package-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-package-devel
> 
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

--
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 using uzh.ch
		Rainer using krugs.de
Skype:     RMkrug

PGP: 0x0F52F982




	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list