I am writing a collection of related packages named with the format <prefix>. as part of the package name (this is done in many other packages, e.g., see the assertive.* and aws.* package collections). Unfortunately, having a period . in the package name causes a problem during compilation:
The . in the package name prefix is interpreted as a token in the generated C++ wrapper code.
Is there a way for cpp11 to support . in package names when writing the extern C wrappers in cpp11.R? One thought is substituting the . for _ in the C++ code, but note that _ is not an accepted character for R packages.
I am writing a collection of related packages named with the format
<prefix>.
as part of the package name (this is done in many other packages, e.g., see theassertive.*
andaws.*
package collections). Unfortunately, having a period.
in the package name causes a problem during compilation:The
.
in the package name prefix is interpreted as a token in the generated C++ wrapper code.Is there a way for cpp11 to support
.
in package names when writing the extern C wrappers in cpp11.R? One thought is substituting the.
for_
in the C++ code, but note that_
is not an accepted character for R packages.