Skip to contents

This function allows to specify a file as Log file, which is used to save all console outputs, prints and messages.

Usage

add_log(x, filename)

# S4 method for BiodiversityDistribution,character
add_log(x, filename)

Arguments

x

distribution() (i.e. BiodiversityDistribution) object.

filename

A character object. The destination must be writeable and filename ends with 'txt'.

Value

Adds a log file to a distribution object.

Examples

if (FALSE) {
 x <- distribution(background) |>
    add_log()
 x
}