trinker / qdap

Quantitative Discourse Analysis Package: Bridging the gap between qualitative data and quantitative analysis
http://cran.us.r-project.org/web/packages/qdap/index.html
175 stars 44 forks source link

ignore.case = FALSE does not work #225

Closed karilint closed 8 years ago

karilint commented 8 years ago

Example:

x <- c("Mr. Jones is here at 7:30 p.m.",  
       "Check it out at www.github.com/trinker/qdap",
       "i.e. He's a sr. dr.; the best in 2012 A.D.",
       "the robot at t.s. is 10ft. 3in.")

replace_abbreviation(x, ignore.case = FALSE)

Error in nchar(pattern) : 'nchar()' requires a character vector

My R version (Windows 10) is 3.3.2 (2016-10-31) and I have updated all packages. Any idea why I get this error message? -Kari

trinker commented 8 years ago

Thanks for the catch should be fixed in the dev version:

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(
    "trinker/qdapDictionaries",
    "trinker/qdapRegex",
    "trinker/qdapTools",
    "trinker/qdap"
)
karilint commented 8 years ago

Great! I'll load the update as soon as it is officially available. -Kari