设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 640|回复: 0

R语言查找源代码行的位置,或在此处设置断点setBreakpoint()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:14:04 | 显示全部楼层 |阅读模式
        R语言查找源代码行的位置,或在此处设置断点setBreakpoint()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:setBreakpoint()
R语言函数功能:查找源代码行的位置,或在此处设置断点
来自资源库:基础库(R语言自带)
setBreakpoint()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

描述-----Description-----

These functions locate objects containing particular lines of source code, using the information saved when the code was parsed with keep.source = TRUE.
这些函数使用通过keep.source = TRUE解析代码时保存的信息来查找包含源代码特定行的对象。


使用方法-----Usage-----

findLineNum(srcfile, line, nameonly = TRUE,
envir = parent.frame(), lastenv)
setBreakpoint(srcfile, line, nameonly = TRUE,
envir = parent.frame(), lastenv, verbose = TRUE,
tracer, print = FALSE, clear = FALSE, ...)

参数-----Arguments-----

参数srcfile介绍: The name of the file containing the source code.
包含源代码的文件的名称。

参数line介绍: The line number within the file. See Details for an alternate way to specify this.
文件中的行号。请参阅详细信息以指定此方法的另一种方法。

参数nameonly介绍: If TRUE (the default), we require only a match to basename(srcfile), not to the full path.
如果为TRUE(默认值),则仅要求与basename(srcfile)匹配,而不与完整路径匹配。

参数envir介绍: Where do we start looking for function objects?
我们从哪里开始寻找功能对象?

参数lastenv介绍: Where do we stop? See the Details.
我们在哪里停下来?请参阅详细信息。

参数verbose介绍: Should we print information on where breakpoints were set?
我们是否应该打印有关设置断点的信息?

参数tracer介绍: An optional tracer function to pass to trace. By default, a call to browser is inserted.
可选的tracer函数,以传递给trace。默认情况下,插入对browser的调用。

参数print介绍: The print argument to pass to trace.
要传递给trace的print参数。
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-6-3 03:45 , Processed in 0.025801 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表