get_remove_hex_twin_fun: Get a function that removes the hex string from filenames.

View source: R/get_remove_hex_twin_fun.R

get_remove_hex_twin_funR Documentation

Get a function that removes the hex string from filenames.

Description

The default filenames created by beautier are temporary files, such as /home/john/.cache/tracelog_82c5888db98.log (on Linux), where /home/john/.cache is the location to a temporary folder (on Linux) and tracelog_82c5888db98.log the filename. The filename ends with a hex string (as is common for temporary files, as tempfile does so). Because beautier puts an underscore between the filename description (tracelog) and the hex string, this function removes both.

Usage

get_remove_hex_twin_fun()

Value

a function

Author(s)

Richèl J.C. Bilderbeek

Examples

f <- get_remove_hex_twin_fun()

# /home/john/beast2_twin.xml.state
f("/home/john/beast2_186c7404208c_twin.xml.state")

# beast2_twin.xml.state
f("beast2_186c7404208c_twin.xml.state")

# NA
f(NA)

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.