pkg_resource: Get package resources

View source: R/pkg_resource.R

pkg_resourceR Documentation

Get package resources

Description

This function allows you to easily source package resources like images or style sheets. The function will return a file path to a resource stored in your package.

Usage

pkg_resource(...)

Arguments

...

arguments to pass to system.file

Value

string

Examples


logoEHA <- pkg_resource("eha_icon_logo.png")
print(logoEHA)

ecohealthalliance/ehastyle documentation built on Jan. 28, 2023, 12:14 a.m.