map_text_coord("Hello world!") # 1 line of text
map_text_coord(c("Hello", "world!")) # 2 lines of text
map_text_coord(c("Hello", " ", "world!")) # 3 lines of text
# \donttest{
## Read text from file:
## Create a temporary file "test.txt":
# cat("Hello world!", "This is a test.",
# "Can you see this text?", "Good! Please carry on...",
# file = "test.txt", sep = "\n")
# txt <- read_ascii("test.txt")
# map_text_coord(txt)
# unlink("test.txt") # clean up (by deleting file).
# }
Run the code above in your browser using DataLab