Create a branding logo for a teachingApp
create_logo(app_dir = NULL, git_user = NULL, icon = NULL, img = NULL)
character
Directory in which the app files are located
character
GitHub account username (see details)
character
Name of a fontAwesome icon printed in the app footer
character
Path to an image printed in the app footer
HTML code for inserting a logo (icon or image) in the footer of a navbarPage app
This function should not be called directly, but is invoked by
add_optionss
when an app is rendered.
By default, the branding logo is the GitHub fontAwesome icon
('fa fa-github'). If img
is specified, it takes precedence
oven icon
.
Hovering over the logo will reveal a link to view the code used to
create the app. This is helpful in a teaching environment, where
students often are interested in understanding how an app functions.
The URL for the link is of the form (https://github.comgit_user
app_pkg
blob/master/inst/apps)
where app_pkg
is created dynamically.