R如何在调用其他函数时获取函数定义
R how to get the function definition when call inside other function
result <- .Call("mcga", popsize, chsize, crossprob, mutateprob,
elitism, minval, maxval, maxiter, par, best, evalFunc,
population, costs, envv, PACKAGE = "mcga")
如何在R中获取mcga
函数定义,mcga
是遗传算法的R包。
.Call
用于调用编译后的代码(dll或等价物)。唯一的办法就是找回源码包(.tar.gz),解压看看源码——cfhttps://cran.r-project.org/web/packages/mcga/index.html;解压缩并查看 "src" 文件夹(在这种情况下似乎是 C 代码)
您可以在包的GitHub页面获取函数的定义:
https://github.com/cran/mcga/blob/master/src/mcga.c
此致,
J_F
result <- .Call("mcga", popsize, chsize, crossprob, mutateprob,
elitism, minval, maxval, maxiter, par, best, evalFunc,
population, costs, envv, PACKAGE = "mcga")
如何在R中获取mcga
函数定义,mcga
是遗传算法的R包。
.Call
用于调用编译后的代码(dll或等价物)。唯一的办法就是找回源码包(.tar.gz),解压看看源码——cfhttps://cran.r-project.org/web/packages/mcga/index.html;解压缩并查看 "src" 文件夹(在这种情况下似乎是 C 代码)
您可以在包的GitHub页面获取函数的定义: https://github.com/cran/mcga/blob/master/src/mcga.c
此致,
J_F