Hi Greg,
On 7 August 2025 at 19:23, Dr Gregory Jefferis wrote: | Is there a way to override the default entries in | | tools::get_exclude_patterns() | | When checking an R package. | | R 4.5.1 now has an entry | | "\\.sw.$" | | Instead of | | "\\.swp$" | | In earlier versions. This was associated with https://github.com/wch/r-source/commit/7bc89c8ab13003238d4b2e6f732a8a537255031d / SVN commit 87718 which hoped to exclude private emacs/vim files. | | Unfortunately the change also catches *.swc files – the standard format for representing the shape of neurons in neuroscience which are used for tests in my package https://cran.r-project.org/package=nat. | | Many thanks for any pointers, | | Greg. | | PS @Dirk Eddelbuettel if you'll forgive me, I am ccing directly as looks like the patch was yours. >From memory, this was for vi-famility editor swapfiles where we had seen additional letters beside the 'p' following 'sw'. I do not recall what those letters were but we may be able to find out and restrict to, say, '[pqrst]', say. An override facility sounds like a lot of work. Can you possibly work around it by, say, renaming (in the package) to '.swc.bin' (say) and then renamed those to '.swc' before your tests run? Or bundle the '.swc' in a zip or tar or alike archive and uncompress on demand? Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel