Write a game to 'PGN'
Arguments
- game
A gm_game object.
- path
Optional output path. If
NULL(default), the 'PGN' string is returned invisibly instead of being written.- overwrite
If
FALSE(default), error rather than overwritepath.
See also
Other io:
gm_read_fen(),
gm_read_pgn(),
gm_write_fen()
Examples
cat(gm_write_pgn(gm_read_pgn("1. e4 e5 *", text = TRUE)))
#> [Event "gambitR game"]
#> [Site "?"]
#> [Date "????.??.??"]
#> [Round "?"]
#> [White "?"]
#> [Black "?"]
#> [Result "*"]
#>
#> 1. e4 e5 *