查看R软件包的来源 [英] View the source of an R package

查看:112
本文介绍了查看R软件包的来源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种从交互环境中查看R包(或包中的方法)源的简便方法?

Is there an easy way to view the source of an R package (or a method in a package), from within the interactive environment?

推荐答案

只需输入不带括号的函数/方法的名称:

Just enter the name of a function/method without parentheses:

R> base::rev.default 
function (x) 
if (length(x)) x[length(x):1L] else x
<environment: namespace:base>

另请参见 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆