sub_bk: Replace extension '.bk'

Description Usage Arguments Value Examples

View source: R/FBM.R

Description

Replace extension '.bk'

Usage

1
sub_bk(path, replacement = "", stop_if_not_ext = TRUE)

Arguments

path

String with extension '.bk'.

replacement

Replacement of '.bk'. Default replaces by nothing.

stop_if_not_ext

If replacement != "", whether to error if replacement is not an extension (i.e. starting with a dot).

Value

String with extension '.bk' replaced by replacement.

Examples

1
2
3
path <- "toto.bk"
sub_bk(path)
sub_bk(path, ".rds")

bigstatsr documentation built on April 5, 2021, 5:08 p.m.