ThinkR-open / dockerfiler

Easy Dockerfile Creation from R
https://thinkr-open.github.io/dockerfiler/
Other
176 stars 26 forks source link

Add an optional default value to dock$ARG #8

Open antoine-sachet opened 3 years ago

antoine-sachet commented 3 years ago

I just added a default argument to add_arg. Currently, this argument is the third (after ahead).

I would prefer to put it in the second spot so you could do dock$ARG("myarg", "myval"), but that would break code that currently does dock$ARG("myarg", TRUE) instead of dock$ARG("myarg", ahead = TRUE).

I also roxygenised the doc. In the new version, R6 objects are finally documented so ?dockerfiler::Dockerfile finally has a whole detailed page. :+1: