Description
Recently, my package RcppAlgos
started getting NOTEs on several builds from CRAN checks:
https://cran.r-project.org/web/checks/check_results_RcppAlgos.html
The NOTE is: "Found non-API calls to R: SETLENGTH
, SET_TRUELENGTH
"
I did many grep
checks in my code repository and could not find and occurrence of SETLENGTH
or SET_TRUELENGTH
. I then googled the NOTE and several packages popped up. All of them that I checked depend on cpp11
.
I then found this issue for arrow
, apache/arrow#41404, which talks about this problem as well.
Both of these calls appear occurring in the r_vector
header:
cpp11/inst/include/cpp11/r_vector.hpp
Lines 898 to 903 in 51f4cd5
I also found this from r-source/wch
in src/library/tools/R/sotools.R
(check out lines 561 to 669):
I'm not really sure what action to take here, I just wanted to bring this to your attention.
Regards,
Joseph