Learn R Programming

logr (version 1.3.7)

log_path: Get the path of the current log

Description

The log_path function gets the path to the currently opened log. This function may be useful when you want to manipulate the log in some way, and need the path. The function takes no parameters.

Usage

log_path()

Arguments

Value

The full path to the currently opened log, or NULL if no log is open.

Examples

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

# Open log
log_open(tmp)

# Get path
lf <- log_path()

# Close log
log_close()

lf

Run the code above in your browser using DataLab