Read the value of a symbolic link

link_path(path)

Arguments

path

A character vector of one or more paths.

Value

A tidy path to the object the link points to.

Examples

.old_wd <- setwd(tempdir()) file_create("foo") link_create(path_abs("foo"), "bar") link_path("bar")
#> /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpOSQGgR/foo
# Cleanup file_delete(c("foo", "bar")) setwd(.old_wd)