I have a docker image where I install several packages using the following lines:
FROM rocker/verse:4.0.3
... (some other installation details)
RUN install2.r --error \
glmnet \
ineq
...
However, I sporadically get error messages when running a container from that image where it seems like R cannot find that package:
Error in library(ineq) : there is no package called 'ineq'
If I create a new version of the container and manually open R and run it, I can never reproduce this error. Does anyone have any idea of how I can fix this (or what I should be looking for to reproduce this)?