debugging a function in R that was not exported by a package

后端 未结 1 1586
天涯浪人
天涯浪人 2021-01-17 10:31

I would like to step through, using debug() or trace(), a function that was not exported. For example, how can I do it for vcov.polr o

相关标签:
1条回答
  • 2021-01-17 11:17

    try

    debug(MASS:::vcov.polr)
    

    note that three colon ::: make the hidden object in a package visible.

    0 讨论(0)
提交回复
热议问题