[R-pkg-devel] [EXTERNAL] Re: R CMD build hanging for some but not all packages
Hong Ooi
hongoo| @end|ng |rom m|cro@o|t@com
Mon Feb 10 18:10:41 CET 2020
That was it; I had a big subdirectory full of stuff I was using to test the package. Removing it caused the build time to drop back to 15 seconds. Thanks!
-----Original Message-----
From: Gábor Csárdi <csardi.gabor using gmail.com>
Sent: Tuesday, 11 February 2020 3:58 AM
To: Hong Ooi <hongooi using microsoft.com>
Cc: r-package-devel using r-project.org
Subject: [EXTERNAL] Re: [R-pkg-devel] R CMD build hanging for some but not all packages
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.
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%7C262a7710f7e945edc5fc08d7ae4a7076%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637169507045837081&sdata=jZnomGihKN%2F4ObGTn5B6GP%2FFtO9jtE1PiNcv%2F6sd6n0%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%7C262a7710f7e945edc5fc08d7ae4a7076%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637169507045837081&sdata=n4ZJZ3hqj7lwFazyUeZ3ECcN8da%2BE%2F3tPTvevWAgPXU%3D&reserved=0
>
> ______________________________________________
> 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%7C262a7710f7e945edc5fc08d7ae4a7076%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637169507045837081&sdata=n4ZJZ3hqj7lwFazyUeZ3ECcN8da%2BE%2F3tPTvevWAgPXU%3D&reserved=0
More information about the R-package-devel
mailing list