R package nets