This is one reason why it's good to test devel, alpha and beta versions
before release.
It's also a good idea to read the news items as they are added. You can
do that at pages linked from
https://developer.r-project.org/RSSfeeds.html, or using an RSS reader.
In this case I don't think the news item would have signalled a problem,
since it didn't list the new patterns:
"‘R CMD build <pkg>’ excludes more file patterns when it tars the <pkg>
directory, fixing both PR#18432 and PR#18434, for ‘vim’ and ‘GNU Global’
‘emacs’ users, thanks to Dirk Eddelbuettel's patch. "
but often there's enough info there to at least encourage some tests.
Duncan Murdoch
On 2025-08-08 4:18 a.m., Dr Gregory Jefferis wrote:
Thanks for the suggestions, Dirk and also Ivan. Given that this change is in
the released version of R I'll have to go with a workaround for now even if the
regex can be updated. It would be great if the regex could be updated because I
think the new one really does catch more than it should.
The workaround is quite a dance because it means that I have to do a
setup/teardown before my tests. I can do this once for the whole test suite,
but then it means that I can't conveniently run individual tests during
development. I have tens of separate tests using these files so running a
setup/teardown for each individual test would require a significant amount of
additional code tweaking.
Best wishes,
Greg.
On 7 Aug 2025, at 20:11, Dirk Eddelbuettel wrote:
PS: There is a bit of discussion of this (for vim) at [1] with the general
rule(s) and a code snippet from vim. One suggestion is to use '*.sw[g-p]' to
spare .swf files for Flash [2]. So we could honour your .swc via '*.sw[d-p]'.
But it seems to me that you may still be better off avoiding this by renaming
or archiving these files. Thoughts?
Dirk
[1]
https://unix.stackexchange.com/questions/326707/vim-what-are-all-the-possible-swapfile-extensions
[2] It's an old discussion
--
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
--
Gregory Jefferis, PhD Tel: +44 1223 267048
Division of Neurobiology
MRC Laboratory of Molecular Biology
Francis Crick Avenue
Cambridge Biomedical Campus
Cambridge, CB2 0QH, UK
http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
http://jefferislab.org
http://www.zoo.cam.ac.uk/research/groups/connectomics
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel