knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%")

volleyreport

Lifecycle: maturing openvolley R-CMD-check

The volleyreport package provides functions for generating reports from volleyball match files.

Installation

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")

Usage

## 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")



openvolley/volleyreport documentation built on Dec. 1, 2024, 10:51 p.m.