Closed vinayakh closed 7 years ago
The Loughran sentiment lexicon is in the development version on GitHub but is not yet on CRAN. (Will be very soon!)
To install the version of tidytext with the Loughran lexicon, use
devtools::install_github("juliasilge/tidytext")
The book should build for you then.
I get this error on the main book when I try to compile it to pdf (after changing the default) in _build.sh. Changing the dict to bing from loughran fixes this error. Error below:
" label: stockloughransentiments (with options) List of 1 $ fig.cap: chr "The most common words in the financial news articles associated with each of the six sentiments in the Loughran"| truncated
Quitting from lines 374-386 (05-document-term-matrices.Rmd) Error in match.arg(lexicon) : 'arg' should be one of "afinn", "bing", "nrc" Calls: local ... same_src.data.frame -> is.data.frame -> get_sentiments -> match.arg
Execution halted Error in Rscript_render(f, render_args, render_meta) : Failed to compile 05-document-term-matrices.Rmd Calls: -> render_new_session -> Rscript_render
Execution halted
"