complete R file