Install ssw-r from GitHub:
Installed ssw-py via pip:
If you have already installed Python and ssw-py, and want to develop ssw-r in RStudio, simply create a file
.Rprofile under the package directory and set the Python binary path (Homebrew Python 3 path example below):
Sys.setenv(RETICULATE_PYTHON = "/usr/local/bin/python3")
The next time you open the project, the correct Python path and library path should be already set. For more technical details, see reticulate Python version configuration.