# NOT RUN {
# Windows example
# as.relative.path(
# c(
# # paths which are equivalent will return .
# "C:/Users/effective_user/Documents/this.path/man",
#
#
# # paths which have no base in common return as themselves
# "https://raw.githubusercontent.com/ArcadeAntics/this.path/main/tests/this.path_w_URLs.R",
# "D:/",
# "//host-name/share-name/path/to/file",
#
#
# "C:/Users/effective_user/Documents/testing",
# "C:\\Users\\effective_user",
# "C:/Users/effective_user/Documents/R/this.path.R"
# ),
# "C:/Users/effective_user/Documents/this.path/man"
# )
# Unix-alikes example
# as.relative.path(
# c(
# # paths which are equivalent will return .
# "/users/effective_user/Documents/this.path/man",
#
#
# # paths which have no base in common return as themselves
# "https://raw.githubusercontent.com/ArcadeAntics/this.path/main/tests/this.path_w_URLs.R",
# "//host-name/share-name/path/to/file",
#
#
# "/users/effective_user/Documents/testing",
# "/users/effective_user",
# "/users/effective_user/Documents/R/this.path.R"
# ),
# "/users/effective_user/Documents/this.path/man"
# )
# }
Run the code above in your browser using DataLab