package "isa2", function isa.iterate()
1
0
Entering edit mode
@zhangjianhai-12955
Last seen 5.0 years ago

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() • 1.2k views
ADD COMMENT
1
Entering edit mode
Haiying.Kong ▴ 110
@haiyingkong-9254
Last seen 5.7 years ago
Germany

isa2:::isa.iterate

ADD COMMENT
0
Entering edit mode

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 REPLY
1
Entering edit mode

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 REPLY
0
Entering edit mode

Martin,

Got it. Thanks a lot.

Regards,

Jianhai

ADD REPLY

Login before adding your answer.

Traffic: 440 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6