r 3.4.1源代码表达式
我有以下函数作为示例:r 3.4.1源代码表达式,r,R,我有以下函数作为示例: myFunc <- function(x){ while(x < 100){ x <- x+10 cat( x ) cat("\n") } } 我希望任何人都能帮忙。非常感谢在将l传递给源代码>l[1]“D:/myFunc.R”之前,l的内容是什么因此源代码(“D:/myFunc.R”)返回相同的错误?environment(source)为您返回了什么?myFunc.R文件中提供的代码是唯一的吗?environment(
myFunc <- function(x){
while(x < 100){
x <- x+10
cat( x )
cat("\n")
}
}
我希望任何人都能帮忙。非常感谢在将l传递给源代码
>l[1]“D:/myFunc.R”之前,l的内容是什么
因此源代码(“D:/myFunc.R”)
返回相同的错误?environment(source)
为您返回了什么?myFunc.R文件中提供的代码是唯一的吗?environment(source)
返回:注意:全局变量“x”没有可见绑定
注意:全局变量“envir”没有可见绑定
filepath <- "D:/"
l <- list.files(filepath, pattern = "my", full.names = TRUE)
source(l)
source(l) Error in source(l) : could not find symbol "exprs" in
environment of the generic function