Learn R Programming

logr (version 1.3.7)

log_status: Get the status of the log

Description

The log_status function gets the status of the log. Possible status values are 'on', 'off', 'open', or 'closed'. The function takes no parameters.

Usage

log_status()

Arguments

Value

The status of the log as a character string.

Examples

Run this code
# Check status before the log is opened
log_status()
# [1] "closed"

# Create temp file location
tmp <- file.path(tempdir(), "test.log")

# Open log
lf <- log_open(tmp)

# Check status after log is opened
log_status()
# [1] "open"

# Close log
log_close()

Run the code above in your browser using DataLab