read_xpm {xvm}R Documentation

read xpm files

Description

This function reads xpm (X PixMap) files, validates their existence, and returns parsed data structures in a list format.

Usage

read_xpm(xpm_files)

Arguments

xpm_files

a character vector containing paths to one or more xpm files.

Details

The function performs the following operations:

  1. Validates input type (must be character vector)

  2. Checks for file existence and filters missing files with warnings

  3. Reads valid files and parses them using parse_xpm()

  4. Returns aggregated results in a named list

Value

list with the following components:

Examples


library(xvm)
# Retrieve the path to the example file included in the package
xpm_file_path <- system.file("extdata/gibbs.xpm", package = "xvm")
xpm_data <- read_xpm(xpm_file_path) # read the xpm file using read_xpm() function
names(xpm_data)


[Package xvm version 0.0.2 Index]