Correct syntax
Add statements to determine the existence of SplitR folders
Modify code block to execute if currently in a project
Remove large section of obsolete code