Reputation: 585
A contributor has added a Dockerfile to my R package. When trying to upload it to CRAN, it gets flagged:
Non-standard file/directory found at top level:
'Dockerfile'
Is there a more appropriate placement for Dockerfiles within the library's directory structure?
Many thanks
Upvotes: 1
Views: 100
Reputation: 9705
You can leave it in the top level directory. Use the .Rbuildignore
file to add an exclusion to the Dockerfile (and other non-standard files).
.Rbuildignore
uses regex. Here's an example .Rbuildignore
file:
^.*\.Rproj$
^\.Rproj\.user$
.travis.yml
.*.tar.gz
^local
Upvotes: 3