Closed maximiliank closed 2 years ago
Generally we write R wrapper functions around the cpp11 registered C++ functions, as often there is additional processing and argument checking needed that is easier to do in R than C++.
I see. Would still be good to add a note about the exports to the package section.
I was following the documentation to create an R package using cpp11. I could create and install the package but could not call any functions until I figured out that I had to create
export
statements in theNAMESPACE
file.Once I added the
export
statements as comment toR/pkgname-package.R
it works, e.g.I also hat to put
NULL
in the end, otherwise nothing is picked up in the documentation step.Can you update the documentation to mention the
export
statements? Or would it be possible thatcpp11::cpp_register()
also creates them?