Description Usage Arguments Value Examples
Print debug message, progress reports... with timestamp.
Default on
Turn off by info.enable(FALSE)
Turn on by info.enable(TRUE)
1 | create.info(prefix = "")
|
prefix |
prefix of message. |
object of class info
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | {
info.self <- create.info() #create object of info class
print(info.self,"print message without prefix.")
info.self <- create.info("tutorial.info") #create object of info class with "tutorial.info" as prefix
print(info.self,"print message with prefix, use identifier for prefix usually.")
# turn it off
info.enable(FALSE) #turn information printing off all together
print(info.self,"will print nothing from now on.")
print(info.self,"conform print nothing.")
# turn it on
info.enable(TRUE) #turn information printing on all together
print(info.self,"start printing again.")
tutorial("info") # print tutorial to console
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.