Pip install leidenalg in r. SNN = TRUE). If you do not have root access...