Learn R Programming

SpaDES (version 1.0.1)

getFileName: Get the name of a source-ed file

Description

Use getFileName in a file that is source-ed. Based on http://stackoverflow.com/a/1816487/1380598.

Usage

getFileName(fullname)

## S3 method for class 'logical':
getFileName(fullname)

Arguments

fullname
Logical (default FALSE) indicating whether the full path should be returned.

Value

  • Character String representing the filename.