Description Usage Arguments Details
Given a character string that identifies one of Shakespeare's plays, this function returns a pointer to the parsed XML version of the play. More prescisely, the returned value is a proxy for a Python object resulting from parsing the corresponding file.
1 | findPlay(name, ask = interactive(), get = TRUE)
|
name |
a character string identifying the play. Ideally this is the key under which the play is stored, but it can also be any
string that uniquely matches one of the play titles. To see keys and titles, call |
ask |
if more than one play matches the name, should the user be asked to choose. Default |
get |
should the play be parsed if it has not been previously? default |
The text of the XML version of the plays (a contribution from Jon Bosak, available from https://www.ibiblio.org/xml/examples/shakespeare/)
are included with this package. In an R session, the first call to getPlay()
matching a particular play will parse the file (in
Python) and return the proxy to the corresponding Python object. The proxy is also saved in a table so that multiple calls for the same
play will only parse once.
This function uses a proxy for the Python function of the same name (which exists in the package as well, under the
name getPlay_Python
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.