Locate an installed resource
Usage
form_resource(path, package)
Arguments
- path
File path relative to the package directory.
- package
Installed package name.
Value
Absolute file path. Missing files and paths escaping the package
raise model_form_error.
Examples
form_resource("examples/survey-form.yaml", "form.model")
#> [1] "/tmp/RtmpQKxtrG/temp_libpath85e40a4265c/form.model/examples/survey-form.yaml"