are_fasta_filenames: Checks if all filenames have a FASTA filename extension

View source: R/are_fasta_filenames.R

are_fasta_filenamesR Documentation

Checks if all filenames have a FASTA filename extension

Description

Checks if all filenames have a FASTA filename extension

Usage

are_fasta_filenames(filenames)

Arguments

filenames

filenames

Value

TRUE if all filenames have a FASTA filename extension

Author(s)

Richèl J.C. Bilderbeek

Examples

check_empty_beautier_folder()

# TRUE
are_fasta_filenames("1.fas")
are_fasta_filenames("1.fasta")
are_fasta_filenames("1.FAS")
are_fasta_filenames("1.FASTA")
are_fasta_filenames(c("1.fas", "2.fas"))

# FALSE
are_fasta_filenames("")
are_fasta_filenames(NA)
are_fasta_filenames(NULL)
are_fasta_filenames(Inf)
are_fasta_filenames("1.fasX")
are_fasta_filenames(c("1.fas", "2.exe"))
are_fasta_filenames(c("1.bat", "2.exe"))

check_empty_beautier_folder()

ropensci/beautier documentation built on July 9, 2024, 6:14 a.m.