Learn R Programming

labeleR (version 0.4.0)

create_badge: Create badges

Description

Create badges (8 badges per DIN-A4 page)

Usage

create_badge(
  data = NULL,
  path = NULL,
  filename = NULL,
  event = NULL,
  name.column = NULL,
  affiliation.column = NULL,
  lpic = NULL,
  rpic = NULL,
  keep.files = FALSE,
  template = NULL
)

Value

A PDF file named "Badges.pdf" is saved on disk, in the folder defined by path. If keep.files = TRUE, an RMarkdown and PNG lpic and rpic files will also appear in the same folder.

Arguments

data

a data frame including names and (optionally) affiliations.

path

Character. Path to folder where the PDF file will be saved.

filename

Character. Filename of the pdf. If NULL, default is "Badges".

event

Character. Title of the event.

name.column

Character. Name of the column in data storing participants' name.

affiliation.column

Character (optional). Name of the column in data storing participants' affiliation.

lpic

Character (optional) Path to a PNG image to be located in the badge top-left.

rpic

Character (optional) Path to a PNG image to be located in the badge top-right.

keep.files

Logical. Keep the RMarkdown template and associated files in the output folder? Default is FALSE.

template

Character (optional) RMarkdown template to use. If not provided, using the default template included in labeleR.

Author

Ignacio Ramos-Gutierrez, Julia G. de Aledo, Francisco Rodriguez-Sanchez

Examples

Run this code
if (FALSE) { # interactive()
create_badge(
  data = badges.table,
  path = "labeleR_output",
  filename = NULL,
  event = "INTERNATIONAL CONFERENCE OF MUGGLEOLOGY",
  name.column = "List",
  affiliation.column = "Affiliation",
  lpic = NULL,
  rpic = NULL)
}

Run the code above in your browser using DataLab