Filesystem pathes
- dirname
- basename
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"
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
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"