splitFilePath: Split File and Path into Separate Parts

View source: R/utilityFunctions.R

splitFilePathR Documentation

Split File and Path into Separate Parts

Description

This is a helper function to split path into path and filename. Code adapted from R.utils filePath command.

Usage

splitFilePath(filepath, normalize = FALSE)

Arguments

filepath

A character string of the file path

Value

A list with elements for the directory, filename, and absolute path.

Examples

  splitFilePath("dir1/subdir1/mplus1.inp")

michaelhallquist/MplusAutomation documentation built on May 9, 2024, 11:37 p.m.