replace_dotted_paths: Replace dotted paths in the vector with their correct full...

View source: R/utils-replace-dotted-paths.R

replace_dotted_pathsR Documentation

Replace dotted paths in the vector with their correct full paths with respect to the current directory and prepend the regular (non-dotted paths) with the current directory path.

Description

Replace dotted paths in the vector with their correct full paths with respect to the current directory and prepend the regular (non-dotted paths) with the current directory path.

Usage

replace_dotted_paths(x)

Arguments

x

A vector of filenames, with or without leading dotted paths (⁠../../⁠) or (⁠../../../../../⁠) or to any level

Value

The same vector of filenames with the dotted paths replaced by full paths and the non-dotted paths prepended by the current directory path


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.