Total guess based on ‘LooseVersion’ mention:
You don’t have a version specified in your
environment.yml like in the conda example one here.
Of course, then the question becomes why does the one here still work? I’d guess that because you actually have
install.R in that other one that it is using that build path or part of that other build route and not encountering the ‘LooseVersion’ issue? I like this one becase the documentation here says ’ Note that these two approaches cannot be combined, so you cannot install R packages via Conda and via an
install.R file at the same time’. Or (less likely) maybe it is an old build still working? One way to test would be to add the Install.R from the other one that works and see what happens.
If it helps plan how to go forward, I have examples here and here that use
postBuild to install the additional packages not available at conda. Be careful to keep the
postBuild file working. You cannot edit that in the browser (or at least it used to break it) so it wouldn’t run as an executable. When working with
postBuild I’ve found you need to use git locally to edit and push the changes.