Specifies path to one of the data files in the package

ascii_data(file)

Arguments

file

Name of file as a character string

Value

Path to file as a character string

Details

This is a convenience function that returns the path to one of the external data files bundled in the asciify package. There are only four such files: "bayes.png", "unicorn.png", "heart.jpg", "rain.html"

Examples

ascii_data("bayes.png")
#> [1] "/home/danielle/GitHub/fun/asciify/inst/extdata/bayes.png"
ascii_data("unicorn.png")
#> [1] "/home/danielle/GitHub/fun/asciify/inst/extdata/unicorn.png"
ascii_data("heart.jpg")
#> [1] "/home/danielle/GitHub/fun/asciify/inst/extdata/heart.jpg"
ascii_data("rain.html")
#> [1] "/home/danielle/GitHub/fun/asciify/inst/extdata/rain.html"