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@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-boun...@r-project.org> On Behalf Of > Hong Ooi via R-package-devel > Sent: Tuesday, 11 February 2020 3:50 AM > To: r-package-devel@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@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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel