Displaying 1 result from an estimated 1 matches for "printls".
Did you mean:
println
2017 Sep 18
2
issue with promises for time parameter of rep()
Greetings,
The following is based on a question I raised on Stackoverflow:
https://stackoverflow.com/questions/46280120/calling-printls-str-in-function-affect-behavior-of-rep/46283979#46283979
Start a new R session with an empty Global Env. Then define:
f <- function(n) {
print(ls.str())
rep("hello", times = n)
}
Now run:
f(x)
Instead of getting the expected "object 'x' not found" error, you...