functionalize data cube, create r client helper