Fixes for R language schema

@jeroen @jimhester

Made this PR months ago and forgot about it, I guess I sent it to the wrong place?

Let me know where the right place is.

You need to tag @ BanzaiMan to get that merged.