Reticulate is a handy way to combine Python and R code. From the reticulate help page suggests that reticulate allows for: "Calling Python from R in a variety of ways including R Markdown, sourcing ...
Official support for free-threaded Python, and free-threaded improvements Python’s free-threaded build promises true parallelism for threads in Python programs by removing the Global Interpreter Lock ...