A consistent naming schema avoids problems when working together, especially when working with different OS. Some OS (e.g. Windows) are case-insensitive whereas others (e.g. Linux) are case-sensitive. Note that the checklist GitHub Actions will test your code on Linux, Windows and MacOS.
check_filename(x = ".")
Checklist object or a path to the source code.
The sections below describe the default rules.
We allow several exceptions when the community standard is different.
E.g. a package stores the function scripts in the
R folder, while our
standard enforces lower case folder names.
Use the community standard, even if it does conform with the checklist
Most likely checklist will have an exception for the name.
If not, you can file an issue and
motivate why you think we should add an exception.
Folder names should only contain lower case letters, numbers and
They can start with a single dot (
Base names should only contain lower case letters, numbers and
File extensions should only contains lower case letters and numbers.
Exceptions: file extensions related to
R must have an upper case
Exception to these exceptions:
_) causes problems for graphical files when using LaTeX to
create pdf output.
This is how we generate pdf output from RMarkdown.
Therefore you need to use a dash (
-) as separator instead of
an underscores (
Applies to files with extensions "csl", "eps", "jpg", "jpeg", "pdf", "png"
We ignore files with "otf" or "ttf" extensions. These are fonts files which often require their own file name scheme.