Let's say I have some packages I want installed in my container. Do we really have to explicitly treat each line as it's own bash command in our Dockerfile? I think this is somewhat hard to read, and I'd like to be able to concatenate the packages into a vector, but bash does not like it when the vector is split across multiple lines.
I'm assuming others have this problem as well? I'm not using install2.r as I can't tell when packages start and finish install, which makes the log files very hard to decipher. I'm assuming others have run into this issue as well?
Is there a way to make something like this work without install2.r?
> Rscript -e 'devtools::install_cran(c("ggstance","ggrepel","ggthemes", \\n
> "tidytext","janitor","corrr","officer","devtools","pacman",\\n
> "tidyquant","timetk","tibbletime","sweep","broom","prophet",\\n
> "forecast","prophet","lime","sparklyr","h2o","rsparkling","unbalanced",\\n
> "formattable","httr","rvest","xml2","jsonlite",\\n
> "textclean","naniar","writexl"))'
I'd like to avoid this if possible:
> Rscript -e 'devtools::install_cran(c("ggstance","ggrepel","ggthemes"))' \
> Rscript -e 'devtools::install_cran(c("tidytext","janitor","corrr","officer","devtools","pacman"))' \