Make syntactically valid names out of character vectors.


R method

if (!requireNamespace("remotes", quietly = TRUE)) {
Sys.setenv(R_REMOTES_UPGRADE = "always")
## Set `GITHUB_PAT` in `~/.Renviron` if you get a rate limit error.

conda method

Configure conda to use the bioconda channels.


syntactic improves upon the make.names() functionality defined in base R, and is designed to return syntactically valid names from biological metadata. The package exports these primary functions:

Additionally, the package exports these utility functions:

  • makeNames(): modified variant of make.names() that sanitizes using underscores instead of dots.
  • capitalize(): Capitalize the first letter of all words in a character vector.

syntactic is designed to handle many common mixed case acronyms (e.g. mRNA, RNAi), as well as decimals in names.