Might be a dumb question, but wouldn't the answer marked as "correct" give you a result different from the expected result?
I say that it might be a dumb question because I am not that familiar (ie not at ALL) with R.
The above is all just my opinion on what you should do.
As with all advice you find on a random internet forum - you shouldn't blindly follow it. Always test on a test server to see if there is negative side effects before making changes to live!
I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.