如何记录RcppExports.R链接函数?
在我的如何记录RcppExports.R链接函数?,r,rcpp,roxygen2,R,Rcpp,Roxygen2,在我的RcppExports.R中,情况如下所示: # This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 rcppeigen_ftrans <- function(A) { .Call('mypkg_rcppeigen_ftrans', PACKAGE = 'mypkg', A) } # This file was
RcppExports.R
中,情况如下所示:
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcppeigen_ftrans <- function(A) {
.Call('mypkg_rcppeigen_ftrans', PACKAGE = 'mypkg', A)
}
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#
#' Fast Matrix Transpose
#'
#' (description)
#' @param ...
#'
rcppeigen_ftrans <- function(A) {
.Call('mypkg_rcppeigen_ftrans', PACKAGE = 'mypkg', A)
}
#此文件由Rcpp::compileAttributes生成
#发电机令牌:10BE3573-1514-4C36-9D1C-5A225CD40393
rcppeigen_ftrans即准确地说,在您的code.cpp
文件中:
//' Fast Matrix Transpose
//'
//' Description
//' @param m
//' ... etc
IntegerMatrix fasttr(IntegerMatrix m) {
将roxygen文档放在源Cpp文件中。@hadley genius一如既往!非常感谢你!伙计们,在CRAN上使用Rcpp的软件包超过430个。这些都是有效的例子。使用它们。此外,搜索是位于顶部的搜索框,[r][rcpp][roxygen]
几乎肯定会提供提示。