Description
Currently the Dockerfile installs the languageserver package in the system library: https://github.com/r-devel/r-dev-env/blob/dev-container/Dockerfile#L18
On Slack I suggested that we manage without the languageserver package to avoid any conflict with base packages or any behaviour that is not reproducible with vanilla R. On reflection, I think it is okay to have it installed as people can always choose to use vanilla R by starting R in the bash terminal.
However, we should install the languageserver package into a separate library from the main system library. Otherwise when we rebuild R and overwrite the system install of R this means we have R 4.4 in the system, but still a lot of packages built under R 4.1 in the system library. We might do this by running some R code once the container has started. There are some pointers here: https://jozef.io/r300-language-server-setup/. I am not sure we will want to use their languageserversetup package directly as we will want to incorporate this in the container set up/start up, but I think we want to follow their general approach (maybe look inside their functions to see what the code does).