Skip to contents

Useful for linking to internal files, such as with image source attributes <img src="[path]">

Usage

path_strip_to(path, resourcepath = "www", leading_slash = FALSE)

Arguments

path

chr

resourcepath

chr A resource path specified in app_ui.R

Value

chr without stripped directories

Examples

path_strip_to("inst/app/www/img/myimage.svg", "www")
#> [1] "www/img/myimage.svg"