This function prints a simple message. This is a demo function to show good
practices in writing and documenting R function. If you delete this function
do not forget to delete the corresponding test file
tests/testthat/test-demo.R if you used new_package(test = TRUE).
print_msg(x = "Hello world")
| x | a character of length 1. Default is |
|---|
The value of x (only if the result is assigned to a variable).
print_msg()#> Hello worldprint_msg("Bonjour le monde")#> Bonjour le mondex <- print_msg("Bonjour le monde")#> Bonjour le mondex#> [1] "Bonjour le monde"