The dev container is designed for working on the latest R-devel, with a recent version of R pre-built in the dev container for reference/initial debugging.
However, for demo purposes it can be useful to check out an old version of R from the svn repo and build that as "r-devel". We get a problem using the VS Code R extension when the built version of R has a minor version less than the pre-built version of R, e.g. we check out and build R-4.4.3 when the pre-built version is R-4.5.2.
The problem comes when we initialise the VS code extension in .Rprofile:
# Source initialization script for VSCode R extension
source("~/.vscode-R/init.R")
.First.sys()
I haven't got to the bottom of this yet, but I think it maybe something to do with loading packages from the site library that are required for the VSCode-R extension (jsonlite, languageserver, etc) and were built under a more recent version of R than the version of R now being used (e.g. built under R-4.5.2 when switching to R-4.4.3).
We might need a trick similar to that being used for unigd, where we rebuild the package for the current R (minor) version if necessary.
The dev container is designed for working on the latest R-devel, with a recent version of R pre-built in the dev container for reference/initial debugging.
However, for demo purposes it can be useful to check out an old version of R from the svn repo and build that as "r-devel". We get a problem using the VS Code R extension when the built version of R has a minor version less than the pre-built version of R, e.g. we check out and build R-4.4.3 when the pre-built version is R-4.5.2.
The problem comes when we initialise the VS code extension in .Rprofile:
I haven't got to the bottom of this yet, but I think it maybe something to do with loading packages from the site library that are required for the VSCode-R extension (jsonlite, languageserver, etc) and were built under a more recent version of R than the version of R now being used (e.g. built under R-4.5.2 when switching to R-4.4.3).
We might need a trick similar to that being used for unigd, where we rebuild the package for the current R (minor) version if necessary.