You'll have store a pointer to SymEngine objects. For the test assume a SymEngine object is like below,
typedef struct {
double A;
double B;
} CStruct;
Come up with a solution to create a struct, update the struct, delete the struct and showing the contents of the struct from R.