Create completed R file