Description Usage Arguments Value Examples
Translate Text File to Board Objects
1 |
file |
Path to text files that will be read in using readLines(). The vector of character strings will contain correctly encoded boards, with a separator "—-" placed before and after each board. If the file's overal format does not meet the expectation, an error will be thrown. If the file is formatted correctly overall, but a board has invalid encoding, no error will occur but the board will be returned as NA rather than a board object. |
A list of board objects (or NA for invalid boards).
1 | read_boards("https://raw.githubusercontent.com/benjaminleroy/36-350-summer-data/master/Week5/percolation_write_example.txt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.