Description Usage Arguments Details Examples
This function record the current time of when the function is used, and write that information into a txt file.
1 | timeRecordB(output_message = "None")
|
output_message |
A string that contains the message you want to saved. |
An global variable is generated in the session, if this variable does not exist in the current R session. Then the output_message and the current time is written to a file with the name that contains the current time. This function does not allow to to specify the current time on purpose, but if you want to continue to append to one log file, you could assign the variable with the file name in the global environment.
1 2 3 4 5 6 7 8 | timeRecordB()
sum(1:10)
timeRecordB(output_message="sum from 1 to 10")
extremely_long_name_i_do_not_think_anyone_would_be_sanely_to_use="logfile_names_to_append.log"
timeRecordB()
sum(1:10)
timeRecordB(output_message="sum from 1 to 10")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.