# NOT RUN {
# Windows-specific example
path <- "C:/Documents/Projects/Import/eyestudy.dta"
SplitPath(path)
path <- "C:/Documents/Projects/Import/"
SplitPath(path)
path <- "C:/Documents/Projects/Import"
SplitPath(path) # last entry will be taken as filename
SplitPath(path, last.is.file=FALSE)
# }
Run the code above in your browser using DataLab