Utility functions for R on Sense