Run »
txt <- "awesome" my_function <- function() { txt <<- "fantastic" paste("R is", txt) } my_function() paste("R is", txt)
[1] "R is fantastic"
[1] "R is fantastic"