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

2020-02-12 Thread Rainer M Krug
Thanks Gabor. The speed is OK (much faster than copying everything), but in my case, all files are ignored, although the package builds fine. So the .Rbuildignore is fine for R. It looks as followed: ``` ^.*\.Rproj$ ^\.Rproj\.user$ ^Makefile$ ^Readme\\.$ ^README\..*$ ## Temporary folder ^tmp$

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

2020-02-11 Thread Martin Morgan
I don't have direct experience or responsibility for this code, but it seems like R CMD build could instead create a 'whitelist' of files to copy to the build location, and do that rather than copying everything and removing things that are to be ignored. The basis for a patch might be somewhere

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

2020-02-11 Thread Gábor Csárdi
It is actually rather complicated, because .Rbuildignore can have regular expressions, that refer to files or directories, and for the latter you need to ignore the whole directory. You can look up in the R source code how R does it, maybe you can reuse that code. Here is a quick and dirty functio

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

2020-02-11 Thread Ben Bolker
Something like file.copy( setdiff(list.files(recursive=TRUE)), scan(".Rbuildignore", what=character())), to = destdir) ? On 2020-02-11 8:50 a.m., Rainer Krug wrote: > Thinking about it - what would be the easiest way, to copy the package, > excluding files in .Rbuidignore, into the temp dir

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

2020-02-11 Thread Rainer Krug
Thinking about it - what would be the easiest way, to copy the package, excluding files in .Rbuidignore, into the temp directory? I would like to use directly the .Rbuildignore file, to exclude the files from copying. Any suggestions? > On 11 Feb 2020, at 10:20, Rainer M Krug wrote: > > >

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

2020-02-11 Thread Rainer M Krug
> On 11 Feb 2020, at 09:54, Gábor Csárdi wrote: > > On Tue, Feb 11, 2020 at 8:52 AM Rainer M Krug wrote: >> On 11 Feb 2020, at 09:42, Gábor Csárdi wrote: >> On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug wrote: >> On 10 Feb 2020, at 17:58, Gábor Csárdi wrote: >> >> Maybe you have large, ig

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

2020-02-11 Thread Gábor Csárdi
On Tue, Feb 11, 2020 at 8:52 AM Rainer M Krug wrote: > On 11 Feb 2020, at 09:42, Gábor Csárdi wrote: > On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug wrote: > On 10 Feb 2020, at 17:58, Gábor Csárdi wrote: > > Maybe you have large, ignored files in the package directory? R first > creates a copy

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

2020-02-11 Thread Rainer M Krug
> On 11 Feb 2020, at 09:42, Gábor Csárdi wrote: > > On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug > wrote: >> >> >> >> On 10 Feb 2020, at 17:58, Gábor Csárdi wrote: >> >> Maybe you have large, ignored files in the package directory? R first >> creates a copy of th

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

2020-02-11 Thread Gábor Csárdi
On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug wrote: > > > > On 10 Feb 2020, at 17:58, Gábor Csárdi 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 qu

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

2020-02-11 Thread Rainer M Krug
> On 10 Feb 2020, at 17:58, Gábor Csárdi 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 m

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

2020-02-10 Thread Gábor Csárdi
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 wrote: > > Actually, cancel that: it finished successfully, but took 3 minut

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

2020-02-10 Thread Hong Ooi via R-package-devel
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