I do an R library with some Cpp functions, i do it using Rcpp.package.skeleton(). In the same Cpp file i have more functions. Is there a method to make the functions that i can't use invisible ?
For example i have :
#include <Rcpp.h>
// [[Rcpp::export]]
int a (int x){
return x+2;
}
// [[Rcpp::export]]
int b(int y){
z=a(y);
return(z);
}
I want to make only "b" function visibile to call.
I use Rcpp skeleton to make my package, if i do R CMD check warning appear that tell me :
Undocumented code objects:'a'
Because i do the documentation only for function "b".
Is there a method to do this ? In RStudio when i write function preview of function that i write appears and i don't want it for function "a" but only for function "b"