Skip to contents

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

Usage

path_strip_shiny(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_shiny("inst/app/www/img/image.jpg")
#> [1] "inst/app/www/img/image.jpg"