printHands {bridger}R Documentation

printHands

Description

Produce a page of bridge hands as a PDF. Each page can hold up to 6 hands, and can show all seats or one of the seats can be selected through the 'outputSeats' parameter.

In all cases, only point counts for the selected seats will be visible.

The output PDFs will be saved to a temporary directory, but a directory can be specified in the 'saveOutput' parameter.

Usage

printHands(
  ids = FALSE,
  seats = FALSE,
  handType = "any",
  num = 12,
  outputSeats = "F",
  saveOutputDir = FALSE,
  ...
)

Arguments

ids

The ids of hands to be generated

seats

The seats of the hands in ids, i.e. the seat which gives the requested conditions, this will become South when printed

handType

The type of hand required, default is 'any'. Alternatives include, '4441', 'strong', ...

num

The number of hands wanted

outputSeats

Character code of required seats, "N", "E", "S", "W" and "F" for the full hand NB "ALL" equivalent to "FNEWS"

saveOutputDir

If FALSE (Default) will save to temporary directory, or specify a directory, e.g. "c:/temp/bridger"

...

Other variables that may be passed when selecting compliant hands

Value

Text message, confirming completion and specifying location of PDF outputs

Examples

## Not run: 
# Produce a hand showing all seats and save them to 'c:/temp/bridger' directory
printHands(handType = "any", num = 1, outputSeats = "FULL", saveOutput = FALSE)
# Produce a page of 6 hands likely to open with a 3-level preempt, only showing the South seat
printHands(handType = "preempt3", num = 6, outputSeats = "S")

# Produce the specified hands, showing all seats
printHands(ids = c(500, 501, 502), seats = c("E", "W", "S"), outputSeats = "FULL")

## End(Not run)


[Package bridger version 0.1.0 Index]