RFunction should be derived from FunctionQuery, not RVar