move R config out to own package