abs_to_rel: Convert absolute path to relative one

abs_to_relR Documentation

Convert absolute path to relative one

Description

Function to convert an absolute path to relative one.

Usage

abs_to_rel(path, base, mustWork = NA)

Arguments

path
  • path to convert to relative to base

base
  • base folder for relative path

mustWork
  • logical: if TRUE then an error is given if the result cannot be determined; if NA then a warning.

Details

See normalizePath for more information on mustWork. The code for this function is essentially a copy of that for sen2r::abs2rel.

Value

relative path as string


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.