❮ Files
❯
- dirname
- basename
Filesystem pathes
examples/files/pathes.R
basename("/home/foobar/projects/my_r_project/main.R") # "main.R" dirname("/home/foobar/projects/my_r_project/main.R") # "/home/foobar/projects/my_r_project"
basename("/home/foobar/projects/my_r_project/main.R") # "main.R" dirname("/home/foobar/projects/my_r_project/main.R") # "/home/foobar/projects/my_r_project"