save_ruleset | R Documentation |
save_ruleset
save ruleset of a game.
save_pamphlet
is a variant that saves the ruleset as a (tri-fold) pamphlet
while save_pocketmod
is a variant that saves the rulest as a “pocketmod” booklet.
save_ruleset(
game,
gk = game_kit(),
output = NULL,
quietly = TRUE,
size = "letter",
...,
game_info = NULL,
game_files = NULL,
cmd_options = NULL
)
save_pamphlet(
game,
gk = game_kit(),
output = NULL,
quietly = TRUE,
size = "letter",
duplex_edge = "short",
...,
game_info = NULL,
game_files = NULL,
save_promo_fn = save_promo_image
)
save_pocketmod(
game,
gk = game_kit(),
output = NULL,
quietly = TRUE,
size = "letter",
duplex_edge = "short",
...,
game_info = NULL,
game_files = NULL,
save_promo_fn = save_promo_image
)
game |
Game name to generate ruleset for. See |
gk |
A |
output |
Path to the output file.
If |
quietly |
Whether to hide document compilation output. |
size |
Paper size (either "letter", or "A4"). |
... |
Ignored |
game_info |
List with game info. If |
game_files |
Character vector of (full path to) "Rtex" game rules. If |
cmd_options |
Options passed to |
duplex_edge |
String specifying the desired duplex printing edge. If "short" match the second page along its short edge (second page flipped up, easier to preview on computer) and if "long" match along its long edge (second page flipped upside down, usual printer default). |
save_promo_fn |
A function with arguments |
See https://pocketmod.com/ for more information about “pocketmod” booklets including folding instructions.
cfg <- piecepackr::game_systems()$dual_piecepacks_expansion
gk <- game_kit(list(cfg = cfg))
if (Sys.which("xelatex") != "") {
output <- tempfile(fileext = ".pdf")
save_pamphlet("tablut", gk = gk, output = output)
# xopen::xopen(output)
# browseURL(output)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.