From d64e31d50d9766da11a878f68fa580d3df4b05c1 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 9 Apr 2017 21:06:06 -0400 Subject: [PATCH] fixed the syuzhet nonimport problem --- DESCRIPTION | 2 +- NAMESPACE | 1 + NEWS | 2 +- NEWS.md | 2 +- R/hash_sentiment_jockers.R | 7 +++++-- README.md | 2 +- inst/CITATION | 4 ++-- man/hash_sentiment_jockers.Rd | 2 +- man/key_sentiment_jockers.Rd | 2 +- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 17d61d8..036e95b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 = "tyler.rinker@gmail.com", role = c("aut", "cre"))) Maintainer: Tyler Rinker diff --git a/NAMESPACE b/NAMESPACE index 88d96f7..b8cdc58 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,3 +3,4 @@ export(available_data) export(hash_sentiment_jockers) export(key_sentiment_jockers) +importFrom(syuzhet,get_sentiment_dictionary) diff --git a/NEWS b/NEWS index b2bc6f5..b591488 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/NEWS.md b/NEWS.md index da9c30a..f6730f3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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** diff --git a/R/hash_sentiment_jockers.R b/R/hash_sentiment_jockers.R index d6ce572..382348d 100644 --- a/R/hash_sentiment_jockers.R +++ b/R/hash_sentiment_jockers.R @@ -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 #' @@ -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") diff --git a/README.md b/README.md index 3aaf7f5..56d16f7 100644 --- a/README.md +++ b/README.md @@ -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) -Version +Version

![](tools/lexicon_logo/r_lexicon.png) diff --git a/inst/CITATION b/inst/CITATION index b0e7507..88946a7 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -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") ) diff --git a/man/hash_sentiment_jockers.Rd b/man/hash_sentiment_jockers.Rd index e9bf219..e9815ba 100644 --- a/man/hash_sentiment_jockers.Rd +++ b/man/hash_sentiment_jockers.Rd @@ -19,7 +19,7 @@ sentiment lookup table used in \pkg{syuzhet}. } } \references{ -Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs +Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs from Text. Retrieved from https://github.com/mjockers/syuzhet } \keyword{datasets} diff --git a/man/key_sentiment_jockers.Rd b/man/key_sentiment_jockers.Rd index 4e755cc..98ec12c 100644 --- a/man/key_sentiment_jockers.Rd +++ b/man/key_sentiment_jockers.Rd @@ -19,7 +19,7 @@ sentiment lookup table used in \pkg{syuzhet}. } } \references{ -Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs +Jockers, M. L. (2017). Syuzhet: Extract sentiment and plot arcs from Text. Retrieved from https://github.com/mjockers/syuzhet } \keyword{datasets}