Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种方法lapply()可以强制它在单步执行列表的下一个元素之前等待用户的“输入”?如果是这样,你能提供一个简单的例子吗?
lapply()
这是示例:
es <- list(1, 2, 3) lapply(es, function(e) { cat("Press enter:") readLines(n = 1) print(e) })