View source: R/get_remove_hex_fun.R
get_remove_hex_fun | R Documentation |
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.
get_remove_hex_fun()
a function to remove the hext string from filenames
Richèl J.C. Bilderbeek
check_empty_beautier_folder()
f <- get_remove_hex_fun()
# /home/john/beast2.xml.state
f("/home/john/beast2_186c7404208c.xml.state")
# beast2.xml.state
f("beast2_186c7404208c.xml.state")
# NA
f(NA)
check_empty_beautier_folder()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.