Re: [R-pkg-devel] Question regarding R package development, how to resolve "Warning: no source files found"

2020-02-11 Thread William Dunlap
INSTALL will give that warning if you have a pkg/src directory that contains no files that look like C, C++, or Fortran files. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Feb 11, 2020 at 11:58 AM Mohsen Nabian wrote: > Greetings! > > How to resolve the following warning for my R

[R-pkg-devel] Question regarding R package development, how to resolve "Warning: no source files found"

2020-02-11 Thread Mohsen Nabian
Greetings! How to resolve the following warning for my R package after running test :system2("R", paste0("CMD INSTALL -l ",Sys.getenv('R_HOME'),"/library ", pkg), stdout = "install1.txt", stderr = "install2.txt") Warning result : "Warning: no source files found" Thanks alot!

Re: [R-pkg-devel] Fwd: PDF generation issue from manual page

2020-02-11 Thread Duncan Murdoch
On 11/02/2020 12:33 p.m., neonira Arinoem wrote: Hi R gurus Got an issue risen by CRAN about using unknown characters from Latex. Here is the error message, in the context of PDF generated form manual pages *Check: PDF version of manual, Result: WARNING LaTeX errors when creating PDF

[R-pkg-devel] Fwd: PDF generation issue from manual page

2020-02-11 Thread neonira Arinoem
Hi R gurus Got an issue risen by CRAN about using unknown characters from Latex. Here is the error message, in the context of PDF generated form manual pages *Check: PDF version of manual, Result: WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems.

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

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

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

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] [EXTERNAL] R CMD build hanging for some but not all packages

2020-02-11 Thread Rainer M Krug
Yes - I would suggest that this would be a useful change. As the files in .Rbuildignore are ignored anyway during build. So the ignoring could be done at the copying stage and not during the building stage? Rainer > On 11 Feb 2020, at 13:20, Hong Ooi wrote: > > They are scanned probably

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

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

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,

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

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

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