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

  ## Not run: 
  splitFilePath("dir1/subdir1/mplus1.inp")
  
## End(Not run)

michaelhallquist/MplusAutomation documentation built on Sept. 9, 2024, 5:17 a.m.