R package for inferring regulatory networks