clean_file_path: Cleans up a file path

View source: R/clean_file_path.R

clean_file_pathR Documentation

Cleans up a file path

Description

Cleans up a file path:

  • Remove double slashes

Usage

clean_file_path(file_path)

Arguments

file_path

path to a file as a string

Value

a cleaned-up string

Author(s)

Richèl J.C. Bilderbeek

Examples

# Does nothing on clean paths
clean_file_path("~/HO_superpopulations")

# Replace the double slashes by single slashes
clean_file_path("~//HO_superpopulations")

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.