Package {shinyseo}


Type: Package
Title: Search Engine Optimization, Social Metadata, and Site Verification Helpers for 'Shiny' Apps
Version: 0.1.1
Author: Rolf Lindgren [aut, cre]
Maintainer: Rolf Lindgren <rolf@grendel.no>
URL: https://CRAN.R-project.org/package=shinyseo, https://github.com/rolfmblindgren/shinyseo
BugReports: https://github.com/rolfmblindgren/shinyseo/issues
Description: Utilities for injecting search engine optimization (SEO), Open Graph, Twitter, site verification, and schema.org metadata into 'Shiny' applications from YAML files or named lists.
License: GPL (≥ 3)
Encoding: UTF-8
Imports: shiny, yaml, jsonlite
Suggests: htmltools, knitr, rmarkdown, testthat (≥ 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-06-03 13:41:34 UTC; rolf
Repository: CRAN
Date/Publication: 2026-06-03 14:20:02 UTC

Inject social metadata into Shiny UI

Description

Inject social metadata into Shiny UI

Usage

social_meta(meta)

Arguments

meta

Either a path to a YAML file or a named list. The final metadata must include title, description, url, and image.

Details

If meta is a character string, it is treated as a YAML file path and read with yaml::read_yaml(). Set schema = FALSE to suppress JSON-LD output. bing_site_verification falls back to SHINYSEO_BING_SITE_VERIFICATION when that environment variable is set. twitter_site and twitter_creator fall back to SHINYSEO_TWITTER_SITE and SHINYSEO_TWITTER_CREATOR when those environment variables are set. The helper does not emit a <title> tag; set the document title in the app UI so it does not clash with any title Shiny already sets. Optional verification fields include bing_site_verification, google_site_verification, yandex_site_verification, baidu_site_verification, naver_site_verification, facebook_domain_verification, and pinterest_domain_verification.

Value

A shiny::tags$head() fragment containing canonical, Open Graph, Twitter Card, and optional schema.org metadata.