Skip to content
Prev 20609 / 21312 Next

[Bioc-devel] file 'HilbertCurve/DESCRIPTION' does not exist

The content of the .Rbuildignore file should be regular expression,
i.e. it does _not_ used fixed strings or globbing to match files and
folders. From 'Writing R Extensions': "To exclude files from being put
into the package, one can specify a list of exclude patterns in file
.Rbuildignore in the top-level source directory. These patterns should
be Perl-like regular expressions (see the help for regexp in R for the
precise details), one per line, to be matched case-insensitively
against the file and directory names relative to the top-level package
source directory."

In regular expression terms, '.o' matches any path that comprise a 'o'
(or 'O' because it's case-insensitive) preceded by any symbol. In
other words, 'DESCRIPTION' is matched because of the 'IO' part of it.
There are other files in this package that are dropped as well by the
'.o' exclusion, e.g.

$ ls -R -1 R/ | grep -i -E ".o"
00_S4_generic_methods.R
GenomicHilbertCurve.R
hc_polygon.R
RcppExports.R

There are probably other files in other subfolders that are dropped as well.

The proper way to exclude files with file extensions *.o and *.so via
.Rbuildignore is:

[.]o$
[.]so$

/Henrik

On Tue, Oct 8, 2024 at 7:22?AM Jennifer Wokaty
<Jennifer.Wokaty at sph.cuny.edu> wrote:
Message-ID: <CAFDcVCQRau29wsCVcDo_U3Kj8=rb_ix=5bgESF_Ot_C+8Cw7rw@mail.gmail.com>
In-Reply-To: <IA0PR14MB6416CADC81A3F3B04BEB3AFFC27E2@IA0PR14MB6416.namprd14.prod.outlook.com>