R keeps claiming there is a space before each line

For example:
Error: unexpected symbol in:
"
print"

Try inserting parentheses.

print("Hello, world!")