Fixed issue #8975: R data exported without a header