R generated code has identifiers with leading underscores
I am using swig to generate R bindings on a C++ project. The generated R code is not accepted by R. There is a snippet at the end of this email, but it all boils down to swig's use of names with leading underscore. Although one can generate R attributes, types etc with a leading underscore, they cannot be used in an assignment as is 'f <- __ne____SWIG_0'. In R an identifier must not start with an underscore.
Is there an interface file directive to modify the naming? Anything else that can help me?