Skip to content

Commit

Permalink
New versions of rda files, to solve problem of formatting change at 1…
Browse files Browse the repository at this point in the history
…0000 lines
  • Loading branch information
juliasilge committed Jun 20, 2016
1 parent 0045b07 commit 2fe3ef6
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data-raw/prep_data.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## This is the script used to download the Project Gutenberg text files and
## add them to the janeaustenr package for v0.1.1

library(gutenbergr)
sensesensibility <- gutenberg_download(161)$text
sensesensibility <- sensesensibility[14:length(sensesensibility)]
prideprejudice <- gutenberg_download(1342)$text
mansfieldpark <- gutenberg_download(141)$text
emma <- gutenberg_download(158)$text
northangerabbey <- gutenberg_download(121)$text
persuasion <- gutenberg_download(105)$text

## Now, add the data files to the package

devtools::use_data(sensesensibility, overwrite = TRUE)
devtools::use_data(prideprejudice, overwrite = TRUE)
devtools::use_data(mansfieldpark, overwrite = TRUE)
devtools::use_data(emma, overwrite = TRUE)
devtools::use_data(northangerabbey, overwrite = TRUE)
devtools::use_data(persuasion, overwrite = TRUE)

########################################################################
# script for v0.1.0 .rda files is below
########################################################################

## This is the script used to process the UTF-8 plain text files from
## Project Gutenberg and add them to the janeaustenr package.
## Project Gutenberg doesn't like automated traffic very much so be careful
Expand Down
Binary file modified data/emma.rda
Binary file not shown.
Binary file modified data/mansfieldpark.rda
Binary file not shown.
Binary file modified data/northangerabbey.rda
Binary file not shown.
Binary file modified data/persuasion.rda
Binary file not shown.
Binary file modified data/prideprejudice.rda
Binary file not shown.
Binary file modified data/sensesensibility.rda
Binary file not shown.

0 comments on commit 2fe3ef6

Please sign in to comment.