I figure read.lines() or maybe the tm package will be the way to go for this, but I was wondering what recommendations folks have for reading a .txt screenplay. Demarcating parts of the screenplay will require case-sensitive and newline-sensitive regexes and such, so I need to preserve all those elements in the content that is read. Thoughts?
read_file() in the tidyverse package does a nice job of this.
2.1m questions
2.1m answers
60 comments
57.0k users