Skip to content

Commit d64e31d

Browse files
committed
fixed the syuzhet nonimport problem
1 parent 59b71ff commit d64e31d

File tree

9 files changed

+14
-10
lines changed

9 files changed

+14
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: lexicon
22
Title: Lexicons for Text Analysis
3-
Version: 0.3.0
3+
Version: 0.3.1
44
Authors@R: c(person("Tyler", "Rinker", email =
55
"tyler.rinker@gmail.com", role = c("aut", "cre")))
66
Maintainer: Tyler Rinker <tyler.rinker@gmail.com>

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
export(available_data)
44
export(hash_sentiment_jockers)
55
export(key_sentiment_jockers)
6+
importFrom(syuzhet,get_sentiment_dictionary)

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ And constructed with the following guidelines:
1717
* Bug fixes and misc changes bumps the patch
1818

1919

20-
lexicon 0.3.0
20+
lexicon 0.3.0 - 0.3.1
2121
----------------------------------------------------------------
2222

2323
BUG FIXES

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ And constructed with the following guidelines:
1717
* Bug fixes and misc changes bumps the patch
1818

1919

20-
lexicon 0.3.0
20+
lexicon 0.3.0 - 0.3.1
2121
----------------------------------------------------------------
2222

2323
**BUG FIXES**

R/hash_sentiment_jockers.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
#' @keywords datasets
1313
#' @name hash_sentiment_jockers
1414
#' @include utils.R
15-
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
15+
#' @importFrom syuzhet get_sentiment_dictionary
16+
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
1617
#' from Text. Retrieved from https://github.com/mjockers/syuzhet
1718
#' @export
1819
hash_sentiment_jockers <- as_key(syuzhet::get_sentiment_dictionary(dictionary = "syuzhet"))
1920
hash_sentiment_jockers <- hash_sentiment_jockers [!is.na(hash_sentiment_jockers[[1]]),]
2021
hash_sentiment_jockers <- hash_sentiment_jockers [!is.na(hash_sentiment_jockers[[2]]),]
2122
data.table::setkey(hash_sentiment_jockers, "x")
23+
hash_sentiment_jockers
2224

2325
#' Jockers Sentiment Key
2426
#'
@@ -33,7 +35,8 @@ data.table::setkey(hash_sentiment_jockers, "x")
3335
#'
3436
#' @keywords datasets
3537
#' @name key_sentiment_jockers
36-
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
38+
#' @importFrom syuzhet get_sentiment_dictionary
39+
#' @references Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs
3740
#' from Text. Retrieved from https://github.com/mjockers/syuzhet
3841
#' @export
3942
key_sentiment_jockers <- syuzhet::get_sentiment_dictionary(dictionary = "syuzhet")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repos
88
[![Build
99
Status](https://travis-ci.org/trinker/lexicon.svg?branch=master)](https://travis-ci.org/trinker/lexicon)
1010
[![](http://cranlogs.r-pkg.org/badges/lexicon)](https://cran.r-project.org/package=lexicon)
11-
<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>
11+
<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>
1212
</p>
1313

1414
![](tools/lexicon_logo/r_lexicon.png)

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ citEntry(entry = "manual",
66
author = "Tyler W. Rinker",
77
organization = "University at Buffalo/SUNY",
88
address = "Buffalo, New York",
9-
note = "version 0.3.0",
9+
note = "version 0.3.1",
1010
year = "2017",
1111
url = "http://github.com/trinker/lexicon",
1212
textVersion = paste("Rinker, T. W. (2017).",
1313
"lexicon: Lexicon Data",
14-
"version 0.3.0. University at Buffalo. Buffalo, New York.",
14+
"version 0.3.1. University at Buffalo. Buffalo, New York.",
1515
"http://github.com/trinker/lexicon")
1616
)

man/hash_sentiment_jockers.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/key_sentiment_jockers.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)