Github codespace inside ropensci repos

Dear all,

I’m reaching out with a question regarding the use of ropensci repositories on GitHub Codespace. Recently, I encountered an issue while debugging one of my R packages, osmextract (see details here). This required building GDAL 3.10 from source, which I’m not very experienced with, so I used the sf package’s Dockerfile as a base in GitHub Codespace.

To replicate this environment, I added a simplified version of the sf Dockerfile to the .devcontainer folder in my ropensci/osmextract repository (see here). However, I noticed that the GitHub Codespace build process seems to ignore this custom Dockerfile for reasons I can’t figure out. Interestingly, this issue doesn’t occur when I use a repository in my personal account (example here).

Are there any known restrictions on using custom Dockerfiles in ropensci repositories on GitHub Codespace? I’d be grateful for any insights or suggestions.

Thank you in advance, and I’m happy to provide further details if needed.

Best regards,
Andrea