file_addext: Make filenames with the supplied extensions. If the...

View source: R/strings.R

file_addextR Documentation

Make filenames with the supplied extensions. If the extensions are already in the filenames, return the filenames

Description

Make filenames with the supplied extensions. If the extensions are already in the filenames, return the filenames

Usage

file_addext(filename, ext)

Arguments

filename

name for the files with or without the extension

ext

extensions to use. May or may not include a dot (.)

Value

The filename(s) with the supplied extension(s)

Examples

library(gfutilities)
file_addext("hello_world_data", ".rds")

pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.