calling graph-tool from R using reticulate

has anyone had any luck running graph-tool from R(Studio) using the
reticulate package?

when i try the following, RStudio crashes immediately:

library(reticulate)

use_condaenv("gt")
py_install("graph-tool")

source_python(file.path(PYTHON_CODE, "fit_sbm.py"))

gt is a conda environment where i have graph-tool installed. for some reason
reticulate would give an error "module graph-tool not available" when i
would run it, hence the py_install command

Hey Sam,

I just update some notes for something similar in my Github, please
consider that these are my (pretty bad) notes. Maybe it could be useful:
https://github.com/anespinosa/sna_notes/blob/master/sna_r_python.md

Best,
Alejandro

attachment.html (3.4 KB)