This function allows to specify a file as Log file, which is used to save all console outputs, prints and messages.
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
}