normalized_filename: Normalize a file name.

Description Usage Arguments Examples

View source: R/normalized_filename.r

Description

Given a string, will check if a file by that name exists. If not, it will try to append '.r' and try again. If not, it will try to append '.R' and try again. Otherwise, it returns FALSE.

Usage

1

Arguments

filename

a character. The name of a file.

Examples

1
2
3
4
5
## Not run: 
normalize_filename('test') # will find test.r or test.R
normalize_filename('test.r') # just returns test.r

## End(Not run)

robertzk/syberiaStructure documentation built on May 27, 2019, 11:38 a.m.