Generate .R data and init files