Learn R Programming

shinyproxyLogs (version 0.1.0)

analyze_logs: Analyze ShinyProxy Log Files in a Directory

Description

This function scans a specified directory, extracts metadata from the log file names, reads their content, and computes some statistics (total number of lines and the number of lines containing "error" or "exception"). Additionally, it retrieves ShinyProxy user information from a separate directory of logs.

Usage

analyze_logs(path_container_logs, path_shinylogs = NULL)

Value

A list containing two data frames:

file_info

Detailed information for each file.

summary

Summary information grouped by container (based on specId, proxyId, and startupTime).

Arguments

path_container_logs

Character. The path to the directory containing the container logs files.

path_shinylogs

Character. The path to the directory containing ShinyProxy identity logs.

Examples

Run this code
if (FALSE) {
  result <- analyze_logs("path/to/containersLogs", "path/to/shinylogs")
  print(result$summary)
}

Run the code above in your browser using DataLab