R: Ensure a file name has the intended extension.

give_ext {filesstrings} | R Documentation

## Ensure a file name has the intended extension.

### Description

See `strex::str_give_ext()`.

### Usage

    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)?

[Package filesstrings version 3.1.0 Index]