knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%")
The volleyreport package provides functions for generating reports from volleyball match files.
options(repos = c(openvolley = "https://openvolley.r-universe.dev", CRAN = "https://cloud.r-project.org")) install.packages("volleyreport") ## or ## install.packages("remotes") ## if needed remotes::install_github("openvolley/volleyreport")
## read dv file library(datavolley) library(volleyreport) x <- dv_read(dv_example_file()) ## generate the report rpt <- vr_match_summary(x, style = "ov1", format = "paged_pdf")
Which should give you something like:
library(datavolley) library(volleyreport) x <- dv_read(dv_example_file()) rpt <- vr_match_summary(x, style = "ov1", format = "paged_png", outfile = "man/figures/README-example.png")
Or for a beach file:
rpt <- vr_match_summary(system.file("extdata/test/&2021ita-w-ross_klineman-pavan_melissa.dvw", package = "volleyreport"), style = "ov1", format = "paged_png", outfile = "man/figures/README-example-beach.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.