我正在用devtools::check(document = FALSE)
检查我新建的R包,总是有一个NOTE。
checking compiled code ... NOTE
File ‘XXXXX/libs/XXXXXX.so’:
Found ‘__ZNSt3__14coutE’, possibly from ‘std::cout’ (C++)
Objects: ‘aaaaa.o’, ‘bbbbb.o’, ‘ccccc.o’
File ‘XXXXX/libs/XXXXX.so’:
Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
我找不到类似的问题来解决"Found ‘__ZNSt3__14coutE’, possibly from ‘std::cout’ (C++)".
"Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’"
似乎是一个普通的NOTE消息,但是一旦我在src文件夹下创建了c文件并在NAMESPACE中进行了修订,则我的包将无法编译。