R wrapper for adda