They are scanned probably because R CMD build does something like cp * to copy
everything to a temp folder first up, before processing it. An argument could
be made that it should manually loop through all files and dirs, checking each
against .Rbuildignore before copying.
From: Rainer M Krug
Sent: Tuesday, 11 February 2020 7:38 PM
To: Gábor Csárdi
Cc: Hong Ooi ; r-package-devel@r-project.org
Subject: [EXTERNAL] Re: [R-pkg-devel] R CMD build hanging for some but not all
packages
On 10 Feb 2020, at 17:58, Gábor Csárdi <mailto:csardi.ga...@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
<mailto: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 <mailto: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: mailto: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=02%7C01%7Chongooi%40microsoft.com%7C7962d328eb984556a2e708d7aecdc0db%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637170071036915332=cmY0VPEiEgcuhI%2B4wIT8iIimQhq7751IJ0KHdsPaMtg%3D=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?
__
mailto: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=02%7C01%7Chongooi%40microsoft.com%7C7962d328eb984556a2e708d7aecdc0db%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637170071036925320=XbCKzK3no6v5asG5assjd7oxy%2BOk9or2LbS%2Fkg8GESw%3D=0
__
mailto:R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
__
mailto: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=02%7C01%7Chongooi%40microsoft.com%7C7962d328eb984556a2e708d7aecdc0db%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637170071036925320=XbCKzK3no6v5asG5assjd7oxy%2BOk9or2LbS%2Fkg8GESw%3D=0
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Orcid ID: -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
mailto:rainer.k...@uzh.ch
mailto:rai...@krugs.de
Skype: RMkrug
PGP: 0x0F52F982
__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel