Learn R Programming

lovecraftr

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.

Installation

To install the CRAN version:


install.packages("lovecraftr")

To install the development version of lovecraftr from GitHub, follow these steps:

### First install the "devtools" package

install.packages("devtools")

### Then install the lovecraftr package

devtools::install_github("SergejRuff/lovecraftr")

Usage

The unearth_lovecraftian_tales() function provides a dataframe containing all available Lovecraft story titles along with their corresponding abbreviations. By default, calling unearth_lovecraftian_tales() returns the complete list of titles and abbreviations within the package. To retrieve the text of a specific story, you can provide either the full title, e.g., unearth_lovecraftian_tales("At the Mountains of Madness"), or the abbreviation, e.g., unearth_lovecraftian_tales("MM").

The fetch_lovecraft() function downloads H.P. Lovecraft's writings directly from the H.P. Lovecraft Archive (https://www.hplovecraft.com/), providing users with easy access to all of his works, including those not available through the unearth_lovecraftian_tales() function.

List of Stories Included in the lovecraftr Package:

  • At the Mountains of Madness (abbreviation: "MM")
  • Azathoth (abbreviation: "AZA")
  • Beyond the Wall of Sleep (abbreviation: "BWS")
  • Celephais (abbreviation: "C")
  • Cool Air (abbreviation: "air")
  • Dagon (abbreviation: "D")
  • He (abbreviation: "HE")
  • Herbert West—Reanimator (abbreviation: "HWR")
  • The Alchemist (abbreviation: "ALC")
  • The Beast in the Cave (abbreviation: "BIC")
  • The Book (abbreviation: "book")
  • The Call of Cthulhu (abbreviation: "CC")
  • The Case of Charles Dexter Ward (abbreviation: "CDW")
  • The Cats of Ulthar (abbreviation: "cat")
  • The Colour Out of Space (abbreviation: "CS")
  • The Descendant (abbreviation: "DE")
  • The Doom That Came to Sarnath (abbreviation: "DS")
  • The Dreams in the Witch House (abbreviation: "DWH")
  • The Dream-Quest of Unknown Kadath (abbreviation: "DQ")
  • The Dunwich Horror (abbreviation: "DW")
  • The Festival (abbreviation: "FE")
  • The Haunter of the Dark (abbreviation: "haunter")
  • The Horror at Red Hook (abbreviation: "RH")
  • The Hound (abbreviation: "H")
  • The Lurking Fear (abbreviation: "LURK")
  • The Music of Erich Zann (abbreviation: "MEZ")
  • The Nameless City (abbreviation: "NC")
  • The Outsider (abbreviation: "O")
  • The Quest of Iranon (abbreviation: "IRA")
  • The Shadow out of Time (abbreviation: "SOT")
  • The Shadow over Innsmouth (abbreviation: "SOI")
  • The Shunned House (abbreviation: "TSH")
  • The Silver Key (abbreviation: "key")
  • The Temple (abbreviation: "TE")
  • The Thing on the Doorstep (abbreviation: "door")
  • Writings in the United Amateur (abbreviation: "WUA")

Citation

When utilizing lovecraftr in your research or software development, kindly reference the R package using the citation obtained from the citation() function:


### Citation function (version "X.X.X" -> version varies depending on release)

citation("lovecraftr")


#> To cite package ‘lovecraftr’ in publications use:
#> 
#>   Ruff S (2024). _lovecraftr: A Collection of Lovecraftian Tales and Texts_. R package version X.X.X,
#>   <https://github.com/SergejRuff/lovecraftr>.

#> A BibTeX entry for LaTeX users is

#>   @Manual{,
#>     title = {lovecraftr: A Collection of Lovecraftian Tales and Texts},
#>     author = {Sergej Ruff},
#>     url = {https://github.com/SergejRuff/lovecraftr},
#>     year = {2024},
#>     note = {R package version X.X.X},
#>   }

Copy Link

Version

Install

install.packages('lovecraftr')

Version

1.2.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 14th, 2024

Functions in lovecraftr (1.2.0)

red_hook

The text of H.P. Lovecraft's "The Horror at Red Hook"
festival

The text of H.P. Lovecraft's "The festival"
unearth_lovecraftian_tales

Retrieve Lovecraftian Tales by Name or abbreviation
he

The text of H.P. Lovecraft's "He"
lurking

The text of H.P. Lovecraft's "The lurking fear"
dunwich_horror

The text of H.P. Lovecraft's "The Dunwich Horror"
witch_house

The text of H.P. Lovecraft's "The Dreams in the Witch House"
lovecraftr

Lovecraftr: A Collection of H.P. Lovecraft's Classic Stories
shunned_house

The text of H.P. Lovecraft's "The Shunned House"
hound

The text of H.P. Lovecraft's "The Hound"
temple

The text of H.P. Lovecraft's "The Temple"
iranon

The text of H.P. Lovecraft's "The quest of Iranon"
shadow_time

The text of H.P. Lovecraft's "The Shadow out of Time"
mountain_madness

The text of H.P. Lovecraft's "At the Mountains of Madness"
outsider

The text of H.P. Lovecraft's "The Outsider"
united_amateur

The text of H.P. Lovecraft's "Writings in the United Amateur"
key

The text of H.P. Lovecraft's "The silver key"
doom

The text of H.P. Lovecraft's "The Doom That Came to Sarnath"
shadow_innsmouth

The text of H.P. Lovecraft's "The Shadow Over Innsmouth"
unknown_kadath

The text of H.P. Lovecraft's "The Dream-Quest of Unknown Kadath"
wall_sleep

The text of H.P. Lovecraft's "Beyond the Wall of Sleep"
azathoth

The text of H.P. Lovecraft's "Azathoth"
fetch_lovecraft

Fetch Lovecraft's Stories from the H.P. Lovecraft Archive
air

The text of H.P. Lovecraft's "Cool air"
call_of_cthulhu

The text of H.P. Lovecraft's "The Call of Cthulhu"
book

The text of H.P. Lovecraft's "The Book"
cats

The text of H.P. Lovecraft's "The Cats of Ulthar"
door_step

The text of H.P. Lovecraft's "The thing on the door-step"
descendant

The text of H.P. Lovecraft's "The Descendant"
city

The text of H.P. Lovecraft's "The Nameless City"
alchemist

The text of H.P. Lovecraft's "The Alchemist"
erich_zann

The text of H.P. Lovecraft's "The Music of Erich Zann"
haunter_dark

The text of H.P. Lovecraft's "The haunter of the dark"
charles_dexter

The text of H.P. Lovecraft's "The Case of Charles Dexter Ward"
celephais

The text of H.P. Lovecraft's "Celephaïs"
beast_cave

The text of H.P. Lovecraft's "The Beast in the Cave"
colour_space

The text of H.P. Lovecraft's "The Colour Out of Space"
dagon

The text of H.P. Lovecraft's "Dagon"
reanimator

The text of H.P. Lovecraft's "Herbert West—Reanimator"