What will be the output of the following R code snippet?
A.
B.
C.
D. Error
Code:
> f <- function(num = 1) {
+ hello <- "Hello, world!\n"
+ for(i in seq_len(num)) {
+ cat(hello)
+ }
+ chars <- nchar(hello) * num
+ chars
+ }
> f()
Code:
Hello, world!
[1] 14
Code:
Hello, world!
[1] 15
Code:
Hello, world!
[1] 16