Learn R Programming

FastRet (version 1.3.0)

init_log_dir: Initialize log directory

Description

Initializes the log directory for the session. It creates a new directory if it does not exist.

Usage

init_log_dir(SE)

Value

Updates the logdir element in the SE list with the path to the log directory.

Arguments

SE

A list containing session information.

Examples

Run this code
SE <- as.environment(list(session = list(token = "asdf")))
init_log_dir(SE)
dir.exists(SE$logdir)

Run the code above in your browser using DataLab