Skip to contents

Get the path to a file in the package's demo resources directory. Works correctly on both desktop and web (Emscripten virtual filesystem).

Usage

raylibr_resource(name)

Arguments

name

File name (e.g., "texture.png").

Value

Full path to the resource file.

Examples

raylibr_resource("texture.png")
#> [1] ""