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%↓↓↓
|