ThinkR-open / dockerfiler

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

Native pipe operator breaks usage with R < 4.1.0 #76

Closed HenningLorenzen-ext-bayer closed 2 months ago

HenningLorenzen-ext-bayer commented 3 months ago

The native pipe operator is only available starting with R >= 4.1.0

https://github.com/ThinkR-open/dockerfiler/blob/5ef486d101246a3b788c3b3e41af40b6cb2dfd04/R/dock_from_renv.R#L150-L151

https://github.com/ThinkR-open/dockerfiler/blob/5ef486d101246a3b788c3b3e41af40b6cb2dfd04/dev/flat_dock_from_renv.Rmd#L189-L190

Options

VincentGuyader commented 3 months ago

oops, I hadn't thought of that. I suggest removing the pipes from the code, so that older versions of R are still usable.