Learn R Programming

SpeedReader (version 0.9.1)

check_directory_name: A function to ensure that a directory name is in the proper format to be pasted together with a file name. It adds a trailling / if necessary.

Description

A function to ensure that a directory name is in the proper format to be pasted together with a file name. It adds a trailling / if necessary.

Usage

check_directory_name(directory)

Arguments

directory

A string containing a directory path that we wish to check.

Value

A string object that is a directory name with a trailing slash, which is what will be required if we wish to paste it and a file name together.