Read the value of a symbolic link
Examples
.old_wd <- setwd(tempdir())
file_create("foo")
link_create(path_abs("foo"), "bar")
link_path("bar")
#> /tmp/RtmpnQ51zN/foo
# Cleanup
file_delete(c("foo", "bar"))
setwd(.old_wd)
Read the value of a symbolic link
.old_wd <- setwd(tempdir())
file_create("foo")
link_create(path_abs("foo"), "bar")
link_path("bar")
#> /tmp/RtmpnQ51zN/foo
# Cleanup
file_delete(c("foo", "bar"))
setwd(.old_wd)