give_ext: Ensure a file name has the intended extension.

Description Usage Arguments

Description

See strex::str_give_ext().

Usage

1
2
3
give_ext(string, ext, replace = FALSE)

str_give_ext(string, ext, replace = FALSE)

Arguments

string

The intended file name.

ext

The intended file extension (with or without the ".").

replace

If the file has an extension already, replace it (or append the new extension name)?


filesstrings documentation built on April 18, 2021, 9:12 a.m.