I am working on a R package and for various reasons I need to write some code in Python.
For my current workflow I have the various scripts sitting in the root directory which I run in my various R codes with reticulate::py_run_file()
followed by reticulate::py$my_function()
(not ideal, I know).
So my question is:
Where do I place my Python files when developing an R package?