Pip install leidenalg in r. There are two things that are needed by this If yo...