Skip to content

Commit

Permalink
fixed the syuzhet nonimport problem
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Apr 10, 2017
1 parent 59b71ff commit d64e31d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: lexicon
Title: Lexicons for Text Analysis
Version: 0.3.0
Version: 0.3.1
Authors@R: c(person("Tyler", "Rinker", email =
"[email protected]", role = c("aut", "cre")))
Maintainer: Tyler Rinker <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
export(available_data)
export(hash_sentiment_jockers)
export(key_sentiment_jockers)
importFrom(syuzhet,get_sentiment_dictionary)
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ And constructed with the following guidelines:
* Bug fixes and misc changes bumps the patch


lexicon 0.3.0
lexicon 0.3.0 - 0.3.1
----------------------------------------------------------------

BUG FIXES
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ And constructed with the following guidelines:
* Bug fixes and misc changes bumps the patch


lexicon 0.3.0
lexicon 0.3.0 - 0.3.1
----------------------------------------------------------------

**BUG FIXES**
Expand Down
7 changes: 5 additions & 2 deletions R/hash_sentiment_jockers.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
#' @keywords datasets
#' @name hash_sentiment_jockers
#' @include utils.R
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
#' @importFrom syuzhet get_sentiment_dictionary
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
#' from Text. Retrieved from https://github.com/mjockers/syuzhet
#' @export
hash_sentiment_jockers <- as_key(syuzhet::get_sentiment_dictionary(dictionary = "syuzhet"))
hash_sentiment_jockers <- hash_sentiment_jockers [!is.na(hash_sentiment_jockers[[1]]),]
hash_sentiment_jockers <- hash_sentiment_jockers [!is.na(hash_sentiment_jockers[[2]]),]
data.table::setkey(hash_sentiment_jockers, "x")
hash_sentiment_jockers

#' Jockers Sentiment Key
#'
Expand All @@ -33,7 +35,8 @@ data.table::setkey(hash_sentiment_jockers, "x")
#'
#' @keywords datasets
#' @name key_sentiment_jockers
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
#' @importFrom syuzhet get_sentiment_dictionary
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
#' from Text. Retrieved from https://github.com/mjockers/syuzhet
#' @export
key_sentiment_jockers <- syuzhet::get_sentiment_dictionary(dictionary = "syuzhet")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repos
[![Build
Status](https://travis-ci.org/trinker/lexicon.svg?branch=master)](https://travis-ci.org/trinker/lexicon)
[![](http://cranlogs.r-pkg.org/badges/lexicon)](https://cran.r-project.org/package=lexicon)
<a href="https://img.shields.io/badge/Version-0.3.0-orange.svg"><img src="https://img.shields.io/badge/Version-0.3.0-orange.svg" alt="Version"/></a>
<a href="https://img.shields.io/badge/Version-0.3.1-orange.svg"><img src="https://img.shields.io/badge/Version-0.3.1-orange.svg" alt="Version"/></a>
</p>

![](tools/lexicon_logo/r_lexicon.png)
Expand Down
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ citEntry(entry = "manual",
author = "Tyler W. Rinker",
organization = "University at Buffalo/SUNY",
address = "Buffalo, New York",
note = "version 0.3.0",
note = "version 0.3.1",
year = "2017",
url = "http://github.com/trinker/lexicon",
textVersion = paste("Rinker, T. W. (2017).",
"lexicon: Lexicon Data",
"version 0.3.0. University at Buffalo. Buffalo, New York.",
"version 0.3.1. University at Buffalo. Buffalo, New York.",
"http://github.com/trinker/lexicon")
)
2 changes: 1 addition & 1 deletion man/hash_sentiment_jockers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/key_sentiment_jockers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d64e31d

Please sign in to comment.