Title: | A Collection of Lovecraftian Tales and Texts |
---|---|
Description: | A curated collection of Howard Phillips Lovecraft's complete stories, collected for the purpose of text analysis. |
Authors: | Ruff Sergej [aut, cre] |
Maintainer: | Ruff Sergej <[email protected]> |
License: | GPL (>= 3) |
Version: | 1.2.0 |
Built: | 2025-02-12 06:01:57 UTC |
Source: | https://github.com/sergejruff/lovecraftr |
A dataset containing the full text of H.P. Lovecraft's "Cool air". The text is provided as a character vector, with each element representing a chunk of the full text.
air
air
A character vector with 339 elements
<https://www.gutenberg.org/ebooks/73177>
A dataset containing the full text of H.P. Lovecraft's "The Alchemist". The text is provided as a character vector, with each element representing a chunk of the full text.
alchemist
alchemist
A character vector with 223 elements
<https://www.hplovecraft.com/writings/texts/fiction/a.aspx>
A dataset containing the full text of H.P. Lovecraft's "Azathoth". The text is provided as a character vector, with each element representing a chunk of the full text.
azathoth
azathoth
A character vector with 34 elements
<https://www.hplovecraft.com/writings/texts/fiction/az.aspx>
A dataset containing the full text of H.P. Lovecraft's "The Beast in the Cave". The text is provided as a character vector, with each element representing a chunk of the full text.
beast_cave
beast_cave
A character vector with 153 elements
<https://www.hplovecraft.com/writings/texts/fiction/bc.aspx>
A dataset containing the full text of H.P. Lovecraft's "The Book". The text is provided as a character vector, with each element representing a chunk of the full text.
book
book
A character vector with 75 elements
<https://www.hplovecraft.com/writings/texts/fiction/b.aspx>
A dataset containing the full text of H.P. Lovecraft's story "The Call of Cthulhu". The text is provided as a character vector, with each element representing a chunk of the full text.
call_of_cthulhu
call_of_cthulhu
A character vector with 1194 elements
<https://www.gutenberg.org/ebooks/68283>
A dataset containing the full text of H.P. Lovecraft's "The Cats of Ulthar". The text is provided as a character vector, with each element representing a chunk of the full text.
cats
cats
A character vector with 82 elements
<https://www.hplovecraft.com/writings/texts/fiction/cu.aspx>
A dataset containing the full text of H.P. Lovecraft's "Celephaïs". The text is provided as a character vector, with each element representing a chunk of the full text.
celephais
celephais
A character vector with 153 elements
<https://www.hplovecraft.com/writings/texts/fiction/c.aspx>
A dataset containing the full text of H.P. Lovecraft's story "The Case of Charles Dexter Ward". The text is provided as a character vector, with each element representing a chunk of the full text.
charles_dexter
charles_dexter
A character vector with 4379 elements
<https://www.gutenberg.org/ebooks/73547>
A dataset containing the full text of H.P. Lovecraft's "The Nameless City". The text is provided as a character vector, with each element representing a chunk of the full text.
city
city
A character vector with 299 elements
<https://www.hplovecraft.com/writings/texts/fiction/nc.aspx>
A dataset containing the full text of H.P. Lovecraft's story "The Colour Out of Space". The text is provided as a character vector, with each element representing a chunk of the full text.
colour_space
colour_space
A character vector with 1110 elements
<https://www.gutenberg.org/ebooks/68236>
A dataset containing the full text of H.P. Lovecraft's "Dagon". The text is provided as a character vector, with each element representing a chunk of the full text.
dagon
dagon
A character vector with 133 elements
<https://www.hplovecraft.com/writings/texts/fiction/d.aspx>
A dataset containing the full text of H.P. Lovecraft's "The Descendant". The text is provided as a character vector, with each element representing a chunk of the full text.
descendant
descendant
A character vector with 92 elements
<https://www.hplovecraft.com/writings/texts/fiction/de.aspx>
A dataset containing the full text of H.P. Lovecraft's "The Doom That Came to Sarnath". The text is provided as a character vector, with each element representing a chunk of the full text.
doom
doom
A character vector with 160 elements
<https://www.hplovecraft.com/writings/texts/fiction/ds.aspx>
A dataset containing the full text of H.P. Lovecraft's "The thing on the door-step". The text is provided as a character vector, with each element representing a chunk of the full text.
door_step
door_step
A character vector with 1081 elements
<https://www.gutenberg.org/ebooks/73230>
A dataset containing the full text of H.P. Lovecraft's story "The Dunwich Horror". The text is provided as a character vector, with each element representing a chunk of the full text.
dunwich_horror
dunwich_horror
A character vector with 1694 elements
<https://www.gutenberg.org/ebooks/50133>
A dataset containing the full text of H.P. Lovecraft's "The Music of Erich Zann". The text is provided as a character vector, with each element representing a chunk of the full text.
erich_zann
erich_zann
A character vector with 198 elements
<https://www.hplovecraft.com/writings/texts/fiction/mez.aspx>
A dataset containing the full text of H.P. Lovecraft's "The festival". The text is provided as a character vector, with each element representing a chunk of the full text.
festival
festival
A character vector with 345 elements
<https://www.gutenberg.org/ebooks/68553>
The 'fetch_lovecraft' function retrieves text from stories by H.P. Lovecraft from the H.P. Lovecraft Archive. If no URL is provided, it returns a data frame listing all available stories with download links. If a valid URL is given, it fetches and returns the text from that specific story.
fetch_lovecraft(url = NULL, trim = NULL)
fetch_lovecraft(url = NULL, trim = NULL)
url |
A character string containing the URL of a specific H.P. Lovecraft story. If 'NULL', the function returns a list of available stories and their links. |
trim |
A vector of indices specifying which lines of the text to keep/trim. If 'NULL', all lines of the text are returned. |
If a valid URL is provided, the function returns a data frame with two columns:
A vector containing the story's text split into lines.
The title of the story.
If no URL is provided, the function returns a data frame with two columns:
The name of the story.
The URL from which the story can be downloaded.
H.P. Lovecraft Archive: https://www.hplovecraft.com/.
#' # List all available stories fetch_lovecraft() # Retrieve a story fetch_lovecraft("https://www.hplovecraft.com/writings/texts/fiction/mm.aspx")
#' # List all available stories fetch_lovecraft() # Retrieve a story fetch_lovecraft("https://www.hplovecraft.com/writings/texts/fiction/mm.aspx")
A dataset containing the full text of H.P. Lovecraft's "The haunter of the dark". The text is provided as a character vector, with each element representing a chunk of the full text.
haunter_dark
haunter_dark
A character vector with 954 elements
<https://www.gutenberg.org/ebooks/73233>
A dataset containing the full text of H.P. Lovecraft's "He". The text is provided as a character vector, with each element representing a chunk of the full text.
he
he
A character vector with 419 elements
<https://www.gutenberg.org/ebooks/68547>
A dataset containing the full text of H.P. Lovecraft's "The Hound". The text is provided as a character vector, with each element representing a chunk of the full text.
hound
hound
A character vector with 189 elements
<https://www.hplovecraft.com/writings/texts/fiction/h.aspx>
A dataset containing the full text of H.P. Lovecraft's "The quest of Iranon". The text is provided as a character vector, with each element representing a chunk of the full text.
iranon
iranon
A character vector with 258 elements
<https://www.gutenberg.org/ebooks/73182>
A dataset containing the full text of H.P. Lovecraft's "The silver key". The text is provided as a character vector, with each element representing a chunk of the full text.
key
key
A character vector with 472 elements
<https://www.gutenberg.org/ebooks/70478>
The lovecraftr package offers a collection of H.P. Lovecraft's most renowned stories, formatted for easy access and text analysis. This package is intended for literary study, text analysis, and exploration of Lovecraft’s unique themes and style within the horror genre.
List of Stories Included in the lovecraftr Package:
Maintainer: Sergej Ruff ([email protected])
If you have any questions, suggestions, or issues, please feel free to contact me ([email protected]).
Useful links:
Report bugs at https://github.com/SergejRuff/lovecraftr/issues
A dataset containing the full text of H.P. Lovecraft's "The lurking fear". The text is provided as a character vector, with each element representing a chunk of the full text.
lurking
lurking
A character vector with 791 elements
<https://www.gutenberg.org/ebooks/70486>
A dataset containing the full text of H.P. Lovecraft's story "At the Mountains of Madness". The text is provided as a character vector, with each element representing a chunk of the full text.
mountain_madness
mountain_madness
A character vector with 4618 elements
<https://www.gutenberg.org/ebooks/70652>
A dataset containing the full text of H.P. Lovecraft's "The Outsider". The text is provided as a character vector, with each element representing a chunk of the full text.
outsider
outsider
A character vector with 211 elements
<https://www.hplovecraft.com/writings/texts/fiction/o.aspx>
A dataset containing the full text of H.P. Lovecraft's "Herbert West—Reanimator". The text is provided as a character vector, with each element representing a chunk of the full text.
reanimator
reanimator
A character vector with 739 elements
<https://www.hplovecraft.com/writings/texts/fiction/hwr.aspx>
A dataset containing the full text of H.P. Lovecraft's story "The Horror at Red Hook". The text is provided as a character vector, with each element representing a chunk of the full text.
red_hook
red_hook
A character vector with 873 elements
<https://www.gutenberg.org/ebooks/72966>
A dataset containing the full text of H.P. Lovecraft's story "The Shadow Over Innsmouth". The text is provided as a character vector, with each element representing a chunk of the full text.
shadow_innsmouth
shadow_innsmouth
A character vector with 1708 elements
<https://www.gutenberg.org/ebooks/73181>
A dataset containing the full text of H.P. Lovecraft's "The Shadow out of Time". The text is provided as a character vector, with each element representing a chunk of the full text.
shadow_time
shadow_time
A character vector with 1528 elements
<https://www.hplovecraft.com/writings/texts/fiction/sot.aspx>
A dataset containing the full text of H.P. Lovecraft's story "The Shunned House". The text is provided as a character vector, with each element representing a chunk of the full text.
shunned_house
shunned_house
A character vector with 1048 elements
<https://www.gutenberg.org/ebooks/31469>
A dataset containing the full text of H.P. Lovecraft's "The Temple". The text is provided as a character vector, with each element representing a chunk of the full text.
temple
temple
A character vector with 319 elements
<https://www.hplovecraft.com/writings/texts/fiction/te.aspx>
Search for and retrieve text from a collection of Lovecraft stories.
unearth_lovecraftian_tales(book = NULL)
unearth_lovecraftian_tales(book = NULL)
book |
A character string representing the full name or abbreviation of the Lovecraft story to search for.
The search is case-insensitive. If |
If a valid book is selected, a data frame with the following columns:
The text of the selected story.
The title of the selected Lovecraft story.
The abbreviation corresponding to the story.
If no book is specified, the function returns a data frame with two columns:
The name of the available story.
The corresponding abbreviation for each story.
# List all available stories unearth_lovecraftian_tales() # Retrieve a story by full name (case-insensitive) unearth_lovecraftian_tales("The shadow over innsmouth") # Retrieve a story by abbreviation (case-insensitive) unearth_lovecraftian_tales("soi") # Retrieve a story with partial name or abbreviation (case-insensitive) unearth_lovecraftian_tales("call") # Retrieve a story by abbreviation unearth_lovecraftian_tales("RH")
# List all available stories unearth_lovecraftian_tales() # Retrieve a story by full name (case-insensitive) unearth_lovecraftian_tales("The shadow over innsmouth") # Retrieve a story by abbreviation (case-insensitive) unearth_lovecraftian_tales("soi") # Retrieve a story with partial name or abbreviation (case-insensitive) unearth_lovecraftian_tales("call") # Retrieve a story by abbreviation unearth_lovecraftian_tales("RH")
A dataset containing the full text of H.P. Lovecraft's "Writings in the United Amateur". The text is provided as a character vector, with each element representing a chunk of the full text.
united_amateur
united_amateur
A character vector with 10749 elements
<https://www.gutenberg.org/ebooks/30637>
A dataset containing the full text of H.P. Lovecraft's "The Dream-Quest of Unknown Kadath". The text is provided as a character vector, with each element representing a chunk of the full text.
unknown_kadath
unknown_kadath
A character vector with 2483 elements
<https://www.hplovecraft.com/writings/texts/fiction/dq.aspx>
A dataset containing the full text of H.P. Lovecraft's "Beyond the Wall of Sleep". The text is provided as a character vector, with each element representing a chunk of the full text.
wall_sleep
wall_sleep
A character vector with 274 elements
<https://www.hplovecraft.com/writings/texts/fiction/bws.aspx>
A dataset containing the full text of H.P. Lovecraft's "The Dreams in the Witch House". The text is provided as a character vector, with each element representing a chunk of the full text.
witch_house
witch_house
A character vector with 892 elements
<https://www.hplovecraft.com/writings/texts/fiction/dwh.aspx>