## 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)
# ## End(Not run)
Run the code above in your browser using DataLab