print_msg: Print a message

View source: R/fun-demo.R

print_msgR Documentation

Print a message

Description

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).

Usage

print_msg(x = "Hello world")

Arguments

x

a character of length 1. Default is 'Hello world'.

Value

The value of x (only if the result is assigned to a variable).

Examples

print_msg()
print_msg("Bonjour le monde")

x <- print_msg("Bonjour le monde")
x

LPDagallier/test documentation built on March 19, 2022, 2:32 a.m.