Added helper function to create R wrappers around SQL files