Utilties for the R-wrapper for FLake