Expand the tilde (~) in file paths to the user's home directory.
Source:R/pathlib.R
Path_expanduser.Rd
This function replaces the tilde (~) character with the user's home directory
path in the provided paths, similar to Python's pathlib.Path.expanduser()
method.