How to use src layout with R packages

Hello,

I have a R project that has the following directory structure:

project/
├── python_package/
├── R/

It's an R project with a reticulate to python code backend. I'd really love to move the source code to a src structure to keep things neat:

project/
├── src/
│   ├── python_package/
│   ├── R/

However I'm not seeing this used anywhere other R projects. In fact I'm frequently seeing src used to host C extensions.

Is my intuition correct? And should I avoid doing something like this?

This topic was automatically closed after 45 days. New replies are no longer allowed.


If you have a query related to it or one of the replies, start a new topic and refer back with a link.