Check if input is syntactically valid R code
Details
This helper does not attempt to evaluate the code in the provided string.
Instead, it uses parse() to determine whether the string
contains valid R syntax.
This expectation will fail if object contains any exposition surrounding
the code, including if code is surrounded by backticks.