R functions for NetWorkSpaces and Sleigh