c++ - 如何获取 R 的辅助函数的 C/C++ 源代码?
问题描述
我想知道在 R 中获取任何辅助函数(以区别于原始/内部函数)的 C/C++ 源代码的正确方法是什么。相关问题在这里、这里、这里和这里:
我的不同,所以我在我的问题中使用了“次要”。例如,我在R控制台中得到的read.table()函数:
>?read.table
read.table package:utils R Documentation
Data Input
Description:
Reads a file in table format and creates a data frame from it,
with cases corresponding to lines and variables to fields in the
file.
Usage:
read.table(file, header = FALSE, sep = "", quote = "\"'",
......
或者
> getAnywhere(read.table)
A single object matching ‘read.table’ was found
It was found in the following places
package:utils
namespace:utils
with value
function (file, header = FALSE, sep = "", quote = "\"'", dec = ".",
......
attr(data, "row.names") <- row.names
data
}
<bytecode: 0x560ff88edd40>
<environment: namespace:utils>
搜索我得到的网站:
https://svn.r-project.org/R/trunk/src/library/utils/src/utils.c
https://svn.r-project.org/R/trunk/src/library/utils/src/utils.h
如果这是合理的,如何获取read.table函数的C/C++源代码而不是R代码?
解决方案
推荐阅读
- google-app-engine - API 无法在 GAE 中加载,出现严重错误,提示内存泄漏
- xamarin - Xamarin 模态页面过渡到普通页面
- css - 更新道具时反应更新表格单元格(td)背景动画
- reactjs - 无法读取 this.state 未定义的属性“状态”
- spring-boot - 在pcf上部署应用程序时面临内存不足的问题
- php - 数组到 HTML 表
- json - Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed
- scala - 基于列表调用方法
- java - 在 Spring 项目中对 Get 请求进行单元测试
- java - 使用递归检查树路径中是否存在总和