Naming Conventions for Path Components

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Let us consider the file /home/richard/test.src

| Component | Name | |------------------------|---------------------------| | /home/richard/test.src | Absolute (file)path | | richard/test.src | Relative (file)path | | /home/richard/ | Absolute (directory) path | | ./richard/ | Relative (directory) path | | richard | Directory | | test.src | Filename |

A path is a location in a directory structure. Filenames only include information about the name of the file. Directories only include information about the name of the directory. Filepaths are paths that specify the location of a file.



Try the org package in your browser

Any scripts or data that you put into this service are public.

org documentation built on June 22, 2024, 10:37 a.m.