Search code examples
rdevtools

how can I stop r devtools::check() from noting .DS_Store


Every time I run devtools::check() on my package it throws a note about:

> checking for non-standard things in the check directory ... NOTE
  Found the following files/directories:
    ‘.DS_Store’

My .Rbuildignore includes:

^.*\.Rproj$
^\.Rproj\.user$
^\.DS_Store$

How can I tell the check() to ignore the file?


Solution

  • I restarted RStudio and it fixed itself. I have no idea why it didn't notice the changes in .Rbuildignore after the file was saved. I had saved and restarted the R session.