Description Usage Arguments Examples
View source: R/normalized_filename.r
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.
1 | normalized_filename(filename)
|
filename |
a character. The name of a file. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.