Question: package "isa2", function isa.iterate()
0
gravatar for zhang.jianhai
22 months ago by
zhang.jianhai0 wrote:

Hello,

How can I retrieve the source code of "isa.iterate()" function in package "isa2"?

I tried by typing isa.iterate, or getAnywhere(isa.iterate), or getMethods("isa.iterate", "list"). All failed.

Thanks.

Regards,

Jianhai

source code isa.iterate() • 284 views
ADD COMMENTlink modified 22 months ago by Haiying.Kong110 • written 22 months ago by zhang.jianhai0
Answer: package "isa2", function isa.iterate()
1
gravatar for Haiying.Kong
22 months ago by
Haiying.Kong110
Germany
Haiying.Kong110 wrote:

isa2:::isa.iterate

ADD COMMENTlink written 22 months ago by Haiying.Kong110

Hello,

Thanks for your reply. It is like the following, still no source code.

> isa2:::isa.iterate
standardGeneric for "isa.iterate" defined from package "isa2"

function (normed.data, ...) 
standardGeneric("isa.iterate")
<environment: 0x1ffeb88>
Methods may be defined for arguments: normed.data
Use  showMethods("isa.iterate")  for currently available ones.

ADD REPLYlink modified 22 months ago • written 22 months ago by zhang.jianhai0
1

Since the generic is not exported, showMethods() needs to be told where to look

> showMethods("isa.iterate", where=getNamespace("isa2"))
Function: isa.iterate (package isa2)
normed.data="list"

A convenient way to get source code for methods when there are only one or two is to use the argument includeDefs=

> showMethods("isa.iterate", where=getNamespace("isa2"), includeDefs=TRUE)
Function: isa.iterate (package isa2)
normed.data="list"
function (normed.data, ...) 
isa.iterate.default(normed.data, ...)

leading finally to isa2:::isa.iterate.default.

ADD REPLYlink written 22 months ago by Martin Morgan ♦♦ 23k

Martin,

Got it. Thanks a lot.

Regards,

Jianhai

ADD REPLYlink written 22 months ago by zhang.jianhai0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 135 users visited in the last hour