Where to put a Dockerfile in an R package

100 Views Asked by At

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

1

There are 1 best solutions below

2
On BEST ANSWER

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